TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:8903] Testing internet connection reliability



On Sat, 2 Oct 1999, Ben Beuchler wrote:

> connection.  Is there some sort of script or program that will test it at
> regular intervals (maybe pinging a reliable host) and log the results?

Yes.

===
#!<your path to>/perl

open (OUTPUT, ">> pingtest.txt");
print OUTPUT scalar localtime, "\n";
$ping = `ping -c 5 h.root-servers.net`;
print OUTPUT $ping;
print OUTPUT "\n\n";
===

Then do 'man cron'.

Hth. :)

----------------------------------------------------------------------
  Christopher Reid Palmer : http://www.innerfireworks.com/

  'I can't understand why people are afraid of new ideas.
  I'm afraid of the old ones.'
  -- John Cage