Ping Results
Hello all, 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. ?? TIA -- MikemickaloBlezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet Solutions that work! http://www.thunder-rain.com Tel: 1(985)902-8484 MSN: [EMAIL PROTECTED] =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
display Ping Results
Hello all, 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. ?? TIA -- MikemickaloBlezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet Solutions that work! http://www.thunder-rain.com Tel: 1(985)902-8484 MSN: [EMAIL PROTECTED] =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Ping Results
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]
Re: Ping Results
On Thu, 30 Jan 2003 at 08:33, Mike Blezien opined: MB:trying to put together a simple 'ping' display via the browser... and MB:not having any luck... how does one get the results of a ping to diplay MB:the results properly ?? http://search.cpan.org/author/BBB/Net-Ping-2.28/lib/Net/Ping.pm don't reinvent the wheel. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ping Results
don't forget that unix ping goes on forever, use -c number of pings to limit it (4 is goot) On Thu, Jan 30, 2003 at 08:33:36AM -0600, Mike Blezien wrote: Hello all, 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. ?? TIA -- MikemickaloBlezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet Solutions that work! http://www.thunder-rain.com Tel: 1(985)902-8484 MSN: [EMAIL PROTECTED] =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mat Harris OpenGPG Public Key ID: C37D57D9 [EMAIL PROTECTED]www.genestate.com msg07475/pgp0.pgp Description: PGP signature
Re: Ping Results
thanks, that may do the trick.. fliptop wrote: On Thu, 30 Jan 2003 at 08:33, Mike Blezien opined: MB:trying to put together a simple 'ping' display via the browser... and MB:not having any luck... how does one get the results of a ping to diplay MB:the results properly ?? http://search.cpan.org/author/BBB/Net-Ping-2.28/lib/Net/Ping.pm don't reinvent the wheel. -- MikemickaloBlezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet Solutions that work! http://www.thunder-rain.com Tel: 1(985)902-8484 MSN: [EMAIL PROTECTED] =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]