you can also use ` ` commands to run executables file.
You then print it out using while method.
So the output will be the same as you are executing the PING command.
Thanks
Teddy
----- Original Message -----
From: "Philip Newton" <[EMAIL PROTECTED]>
To: "'Morgan, Steve H.'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, February 15, 2001 3:36 PM
Subject: Re: Ping from Perl
> Morgan, Steve H. wrote.
> > Is there any way to get the ping return time from within perl
> > on a win32 system. The NET::Ping module does not seem to return
> > this information.
>
> Time it yourself? Call time() before and after doing the ping and subtract
> one value from the other. This gives you the number of seconds.
>
> If you need higher resolution, Time::HiRes may be able to help you (I
don't
> know whether it works under win32, though).
>
> Cheers,
> Philip
> _______________________________________________
> Perl-Win32-Web mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web