mojo_the_helper has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; my $host; my @hosts = ("host1","host2"); foreach $host (@hosts) { if(`ping $host -c 1` == 0) { `ssh $host Start.sh &`; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: shell execution question
by dws (Chancellor) on Jun 07, 2003 at 03:33 UTC | |
|
Re: shell execution question
by kelan (Deacon) on Jun 07, 2003 at 03:36 UTC | |
by hacker (Priest) on Jun 07, 2003 at 12:18 UTC | |
|
(jeffa) Re: shell execution question
by jeffa (Bishop) on Jun 07, 2003 at 05:24 UTC | |
|
Re: shell execution question
by gellyfish (Monsignor) on Jun 07, 2003 at 08:58 UTC |