From owner-freebsd-questions Thu Nov 4 15: 5:52 1999 Delivered-To: freebsd-questions@freebsd.org Received: from athserv.otenet.gr (athserv.otenet.gr [195.170.0.1]) by hub.freebsd.org (Postfix) with ESMTP id B65D115787 for ; Thu, 4 Nov 1999 15:05:42 -0800 (PST) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: from hades.hell.gr (patr530-a100.otenet.gr [195.167.115.100]) by athserv.otenet.gr (8.9.3/8.9.3) with SMTP id BAA00147 for ; Fri, 5 Nov 1999 01:05:32 +0200 (EET) Received: (qmail 1738 invoked by uid 1001); 4 Nov 1999 22:52:47 -0000 To: freebsd-questions@freebsd.org Subject: Re: cron on laptops References: From: Giorgos Keramidas Date: 05 Nov 1999 00:52:46 +0200 In-Reply-To: Jonathon McKitrick's message of "Thu, 4 Nov 1999 02:01:47 +0000 (GMT)" Message-ID: <86vh7h6f9d.fsf@localhost.hell.gr> Lines: 29 X-Mailer: Gnus v5.6.45/XEmacs 21.1 - "20 Minutes to Nikko" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jonathon McKitrick writes: > Are there any practical uses for cron and crontabs on a workstation > laptop with a dialup PPP connection? I mean, since you don't know > what times you will be powered up.... And i guess this goes for all > FBSD machines that get turned off every day. If you want to run fetchmail, as Annelise pointed in her reply, and you're thinking of some way to have it run in `daemon' mode, but only when the ppp link is up, the /etc/ppp/ppp.linkup and ppp.linkdown files are your friends. I have in /etc/ppp/ppp.linkup !bg echo 'fetchmail -d 300' | su - charon and in /etc/ppp/ppp.linkdown killall fetchmail As for cron now. You can tweak the /etc/periodic scripts to touch a file every time they finish successfully, and then manually run another script that would check if the proper interval has passed, and launch `periodic' if too much time has passed without crond noticing it. Regards, Giorgos -- Giorgos Keramidas, "What we have to learn to do, we learn by doing." [Aristotle] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message