> trying to put together a simple 'ping' display via the 
> browser... and not having 
> any luck... how does one get the results of a ping to diplay 
> the results properly ??
> 
> Sample code:
> =======================================
> #!/usr/bin/perl
> use CGI qw(:standard);
> use strict;
> 
> my $pingcommand = '/bin/ping';
> my $host        = 'www.yahoo.com';
> my $Display     = `$pingcommand $host`;
> 
> print header();
> print qq~$Display~;
> 
> 
> Doesn't seem to work. ??

Instead of shelling out to ping. Try using the Net::Ping module. Docs give
good, easy to user examples. 
HTH,
Jim


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to