slgilley has asked for the wisdom of the Perl Monks concerning the following question:
I have a script which accesses a bunch of other machines using:
@list = `ssh machine "ls path"`;
The problem is that while most of the machines are stable, some might not be running on a particular day. Is there a way to set a timer to send a signal that I can catch if the `ssh` hasn't returned in, say, ten seconds so that the script doesn't wait for the three minutes it'd normally take to time out?
Thanks,
Sean.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Timing out ``?
by kennethk (Abbot) on Jun 06, 2012 at 20:49 UTC | |
by mbethke (Hermit) on Jun 06, 2012 at 23:15 UTC | |
by kennethk (Abbot) on Jun 07, 2012 at 00:05 UTC | |
by thomas895 (Deacon) on Jun 06, 2012 at 22:09 UTC | |
by kennethk (Abbot) on Jun 06, 2012 at 23:57 UTC | |
by slgilley (Initiate) on Jun 07, 2012 at 12:49 UTC |