Ben Crane wrote: > Hi all, > > I need to set the ping command running for a few hours > on my machine, and record (the exact time/date) then > the ping function fails. > > I have tried putting a script together but no joy. > Does anyone have a script like this that I could > please "borrow"?? I need to run the checks this > afternoon and Wednesday and I've tried rather > unsuccessfully to time ping responses from ms-dos (but > if anyone knows how to do that then that'll be fine)
This isn't really a script-writing service :~) What have you tried so far? Show us your script. Does ping run continuously and then exit on failure? Something simple like: system "ping somehost"; print "ping exited at ", scalar(localtime), "\n"; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>