in reply to My Ping attempt in perl

Try this...
my $output = system("/bin/ping -c 1 2>&1> /dev/null $HOST"); if ($output) { print "Could not ping host."; } else { print "Ping successful.\n"; }

Replies are listed 'Best First'.
Re: Re: My Ping attempt in perl
by Anonymous Monk on Jul 06, 2002 at 00:45 UTC
    Thanks for all your replies! I will try all the information you all gave me first thing this Monday morning.
Re: Re: My Ping attempt in perl
by Anonymous Monk on Jul 05, 2002 at 18:20 UTC
    Dont forget (like I did) to change $HOST to $_