Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Nov 1996 22:04:17 -0500 (EST)
From:      jack <>
To:        Dan McCaffrey <>
Subject:   Re: Script Question
Message-ID:  <Pine.FBS.3.95.961124220127.2001A-100000@localhost>
In-Reply-To: <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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!

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 or     
#include <std_disclaimers.h>    for my PGP key.
 PGP Key fingerprint = F6 C4 E6 D4 2F 15 A7 67   FD 09 E9 3C 5F CC EB CD

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