Date: Fri, 30 May 2008 12:17:42 -0400 From: Jerry McAllister <jerrymc@msu.edu> To: Jos Chrispijn <jos@webrz.net> Cc: freebsd-questions@freebsd.org Subject: Re: Delayed cronjobs Message-ID: <20080530161742.GB42590@gizmo.acns.msu.edu> In-Reply-To: <483FC68E.2030603@webrz.net> References: <483FC68E.2030603@webrz.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 30, 2008 at 11:19:10AM +0200, Jos Chrispijn wrote: > Let's say my system has been down for one day. Is it possible to > automatically (re)start cronjobs on system startup that should have been > run the day before? You can write the sccript that your cronjob starts so that it keeps track of when it was last run and then either have cron run it often or add it to /usr/local/etc/rc.d to be run at startup. Then if the script was run sufficiently recently, just exit - maybe with an appropriate message/error code. ////jerry > > -- Jos > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080530161742.GB42590>
