- or download this
my $cmd = "$ping $_ 2> /dev/null";
print "Debug: command is '$cmd'\n";
my $ping_out = `$cmd`;
- or download this
Debug: command is '/bin/ping myserver02 2> /dev/null'
- or download this
my $ping_out = `$cmd`;
chomp ($ping_out);
print "Debug: ping results => '$ping_out'\n";