in reply to Reaped: Re: A way to break if an action is not responding and go to next?
in thread A way to break if an action is not responding and go to next?
$SIG{ALRM} = \&timed_out; eval { alarm (30); system ($stop); alarm(0); }; if ($@ =~ /GOT TIRED OF WAITING/) { my $kill='pskill' . " " . '\\\\' . $machine . " " . "psexesvc +"; system ($kill); sub timed_out { die "GOT TIRED OF WAITING"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reaped: Re: A way to break if an action is not responding and go to next?
by cdarke (Prior) on Jul 19, 2011 at 10:05 UTC |