ping

Steve Meier smeier at sdsc.edu
Tue May 16 09:26:28 CDT 2000



Could someone tell me what I am doing wrong? What I want to do is look
at each line that comes in on a ping. Eventually I will add regexp that
will extract what I want out, but I am not going to worry that until I
get the basics working. I know this is how you would go about it if it
was a file that you wanted to look at line by line.

Any help is greatly appreciated.


$ping = "/usr/sbin/ping";

open (PING, "$ping $desthost ");

while (<PING>)
        {
        printf $_;
        }
close(PING);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smeier.vcf
Type: text/x-vcard
Size: 220 bytes
Desc: Card for Steve Meier
Url : http://mail.pm.org/archives/san-diego-pm/attachments/20000516/ddefbc6a/smeier.vcf


More information about the San-Diego-pm mailing list