#!/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 &`; } }
In reply to shell execution question by mojo_the_helper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |