At 06:16 PM 04/28/00 -0700, S.Toms wrote:
(all on one line) 0-59/5 * * * * mail test "`ps acx | grep pppd`" != "" && /usr/bin/fetchmail -d 300
if it finds that pppd daemon is running, it will launch fetchmail which will begin checking for messages. A seperate line like the following
(all on one line) 0-59/5 * * * * mail test "`ps acx | grep pppd`" = "" && /usr/bin/fetchmail -q
which will check to see if pppd is down and kill fetchmail thus preventing problems.
I think this could all be simplified by using fetchmail's -M switch. Start fetchmail at boot (or first time ip-up.local is executed, and leave it running). Fetchmail will fetch mail while on-line, and it will wait while off-line. Bill Moseley mailto:moseley@hank.org -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/