in reply to script suicide?
$SIG {ALRM} = sub {exit}; alarm (30);
There's however one caveat: if you use Perl 5.8.0, and your script is "hanging" during a Perl operation, the signal will be queued until that Perl operation is finished.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: script suicide?
by liz (Monsignor) on Jul 21, 2003 at 08:03 UTC | |
|
Re: Re: script suicide?
by AssFace (Pilgrim) on Jul 21, 2003 at 13:58 UTC | |
by Abigail-II (Bishop) on Jul 21, 2003 at 14:04 UTC | |
by AssFace (Pilgrim) on Jul 21, 2003 at 14:13 UTC |