in reply to Re: Self terminating a script after a specified time
in thread Self terminating a script after a specified time
If this is *NIX, be very, very careful before you type the word "killall" into your terminal session. Or arrange for cron to call it. On traditional UNIX systems, AIX in particular, it kills all processes except the one calling killall. Kills as in 'SIGKILL', not 'SIGTERM'. Be very, very careful.
A safer way would be to set up an 'at' job calling 'kill' with the PID of the running process, at the beginning of the script. Or just use Time::Limit. :)
- Luke
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Self terminating a script after a specified time
by shardservant (Initiate) on Jan 08, 2015 at 13:47 UTC | |
by Anonymous Monk on Jan 08, 2015 at 17:54 UTC | |
by Anonymous Monk on Jan 09, 2015 at 13:55 UTC |