Date: Sun, 24 Nov 1996 21:02:53 -0700 (MST) From: Wes Peters <softweyr@xmission.com> To: quest@shaft.unicus.ca Cc: questions@freebsd.org Subject: Re: Script Question Message-ID: <199611250402.VAA00410@obie.softweyr.com>
next in thread | raw e-mail | index | archive | help
Dan McCaffrey <quest@shaft.unicus.ca> 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 some.host.some.where.in.ca 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 http://www.xmission.com/~softweyr softweyr@xmission.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611250402.VAA00410>