Find the answer to your Linux question:
Results 1 to 5 of 5
hey guys please i need your help, im new in shell and i don't know how to solve this: I need to write a script called ghoul that is difficult ...
  1. #1
    Just Joined!
    Join Date
    May 2010
    Posts
    3

    bash script problem

    hey guys
    please i need your help, im new in shell and i don't know how to solve this:
    I need to write a script called ghoul that is difficult to KILL; when it recieves a SIGINT(control-c), it should ceate a copy of itself before dying.Thus every time a user tries to kill a GHOUL , another ghioul is created to tke its place! of course, ghoul can still be killed by a SIGKILL(-9)signal.

    Thanx, XOXO

  2. #2
    Just Joined!
    Join Date
    May 2010
    Posts
    3
    heeeeelp!!!

  3. #3
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    google is quite a useful tool, first result for "bash signals"

    Catching signals

  4. #4
    Just Joined!
    Join Date
    May 2010
    Posts
    3
    thanx for your help, but can anyone be more helpful

  5. #5
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    This is probably a homework question
    http://www.linuxforums.org/forum/lin...ums-rules.html

    And if by "be more helpful" you mean do the script for you, no one is going to do that, you need to do the work for yourself! tldp is great for this kind of thing, you can see examples and references

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...