Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Nov 1996 21:02:53 -0700 (MST)
From:      Wes Peters <>
Subject:   Re: Script Question
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help
Dan McCaffrey <> asked:
 > Greetings All! I have a FreeBSD 2.1.5 Box connected by ISDN service to my 
 > ISP. Unfortunately my ISPs router is configured to clear connections that 
 > have been inactive for 10 minutes. Right now I have set cron to ping a 
 > host outside of my network every 5 minutes in order to keep the 
 > connection alive. As you could guess my root mailbox gets filled up 
 > pretty quick with the results from the ping. Is there a way that I could 
 > set up a script that is loaded at startup, runs in the background and 
 > pings a host every 5 minutes, without having to involve cron? Thank you 
 > in advance!

Look at 'man ping'.  Try something like:

	ping -n -i 300

which will ping the named host every 5 minutes.  If your ISP gets
clever and disallows ICMP Echo packets (i.e. ping requests) from
resetting their timer, use rsh to run this command on *their* system;
the output packets coming back to you will look like any interactive
session and will fool their watchdog.

          "Where am I, and what am I doing in this handbasket?"

Wes Peters                                                       Softweyr LLC             

Want to link to this message? Use this URL: <>