Date: Sun, 24 Nov 1996 22:04:17 -0500 (EST) From: jack <jack@diamond.xtalwind.net> To: Dan McCaffrey <quest@shaft.unicus.ca> Cc: questions@FreeBSD.org Subject: Re: Script Question Message-ID: <Pine.FBS.3.95.961124220127.2001A-100000@localhost> In-Reply-To: <Pine.BSF.3.91.961124170030.2111A-100000@shaft.unicus.ca>
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! 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 <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: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.FBS.3.95.961124220127.2001A-100000>