ceweldon has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w local $SIG {ALRM} = sub {die "alarm"}; eval { alarm (2); system "$vmdiscover --server esx3-1.erp.ufl.edu --managedentity ho +st --entityname esx3-1.erp.ufl.edu "; alarm (0); }; if ($@ && $@ =~ /^alarm/) { print "Command has timed out"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Kill a command launched within script
by lostjimmy (Chaplain) on Nov 21, 2008 at 16:47 UTC | |
by massa (Hermit) on Nov 21, 2008 at 18:17 UTC | |
|
Re: Kill a command launched within script
by zwon (Abbot) on Nov 21, 2008 at 18:54 UTC |