my $output = system("/bin/ping -c 1 2>&1> /dev/null $HOST"); if ($output) { print "Could not ping host."; } else { print "Ping successful.\n"; }
In reply to Re: My Ping attempt in perl
by Anonymous Monk
in thread My Ping attempt in perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |