From owner-freebsd-questions Sun Nov 24 19:04:36 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA29836 for questions-outgoing; Sun, 24 Nov 1996 19:04:36 -0800 (PST) Received: from diamond.xtalwind.net (diamond.xtalwind.net [205.160.242.18]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id TAA29830 for ; Sun, 24 Nov 1996 19:04:23 -0800 (PST) Received: from localhost (pa1dsp6.x31.infi.net [206.27.115.30]) by diamond.xtalwind.net (8.8.3/8.8.2) with SMTP id WAA22890; Sun, 24 Nov 1996 22:04:14 -0500 (EST) Date: Sun, 24 Nov 1996 22:04:17 -0500 (EST) From: jack X-Sender: jack@localhost To: Dan McCaffrey cc: questions@FreeBSD.org Subject: Re: Script Question In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk On Sun, 24 Nov 1996, Dan McCaffrey wrote: > 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! Add MAILTO="" near the top of your crontab file then append 2>&1 | sendmail root to any commands that you /want/ the output mailed to root. -------------------------------------------------------------------------- Jack O'Neill Finger jacko@onyx.xtalwind.net or jack@xtalwind.net http://www.xtalwind.net/~jacko/pubpgp.html #include for my PGP key. PGP Key fingerprint = F6 C4 E6 D4 2F 15 A7 67 FD 09 E9 3C 5F CC EB CD --------------------------------------------------------------------------