in reply to Redirect Question

The  > pinglog.pl won't ever happen becuase it's waiting on ping to stop before it does, at least I think. You might try this, untested:

ping -c 5 -s 192.168.1.1 | pinglog.pl > pinglog.out

"Pain is weakness leaving the body, I find myself in pain everyday" -me

Replies are listed 'Best First'.
Re: Re: Redirect Question
by jbaribeault (Novice) on Sep 15, 2003 at 16:45 UTC
    On solaris, the -s for the ping command makes it send 1 packet every second, indefinetly. The point of this script is to catch holes in the sequence number and calculate timestamps for the lost pings, and log the timestamps to a file.

    I have even tried writing to an output file handle with my print statements to no avail. Works to the screen if I just use print, print FH doesn't. Ack :(