From owner-freebsd-questions Sun Nov 24 16:25:02 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA22517 for questions-outgoing; Sun, 24 Nov 1996 16:25:02 -0800 (PST) Received: from ghost.mep.ruhr-uni-bochum.de (ghost.mep.ruhr-uni-bochum.de [134.147.6.16]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id QAA22503 for ; Sun, 24 Nov 1996 16:24:53 -0800 (PST) Received: (from roberte@localhost) by ghost.mep.ruhr-uni-bochum.de (8.7.5/8.7.3) id BAA05765; Mon, 25 Nov 1996 01:23:51 +0100 (MET) From: Robert Eckardt Message-Id: <199611250023.BAA05765@ghost.mep.ruhr-uni-bochum.de> Subject: Re: Script Question In-Reply-To: from Dan McCaffrey at "24. Nov. 96 17:02:49" To: quest@shaft.unicus.ca (Dan McCaffrey) Date: Mon, 25 Nov 1996 01:23:49 +0100 (MET) Cc: questions@freebsd.org X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > 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! Have a look at the man page ping(8): You can use ping -i 300 This will send every 300s a packet. Robert -- Robert Eckardt \\ FreeBSD -- solutions for a large universe.(tm) RobertE@MEP.Ruhr-Uni-Bochum.de \\ What do you want to boot tomorrow ?(tm) http://WWW.MEP.Ruhr-Uni-Bochum.de/~roberte For PGP-key finger roberte@gluon.MEP.Ruhr-Uni-Bochum.de