[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cron.daily et al.



> > How about a (cron) job, that executed every time the
> > machine gets booted and that checks when the cron jobs
> > were executed for the last time. If these for were not 
> > executed for say two days (weeks, months) then they
> > get executed regardless the actual hour, day, week of month.
> 
> I second this.

I think this could be a large problem. There can exist cron jobs that
won't work unless they are run at a special time, or they could disrupt
things if they are ran at a random bootup-time. 

For example, a cron job to connect to the network and mirror a ftp site --
say it takes 2 hours, and you run it in the wee hours of morning in what's
normally your voice phone line. You don't want something like this to get
run when you just boot up the computer during the day (maybe someone else
is using the phone at that time..) 

Have you looked at anacron? Maybe it can do what you want:

------------------------------------------------------------------------
anacron - a cron-like program that doesn't go by time

anacron (like `anac(h)ronistic') executes jobs in a certain interval.

Therefore it is useful to schedule daily maintaining jobs, such as
cleaning /tmp, getting email from the ISP, etc.

It's also a good replacement for cron on systems, that don't run
continously 24 hours a day but are powered on and shut down several times
a day.

-- 
#!/usr/bin/perl -pi_______Syntax:_sig.pl_<location-of-netscape-program>_______
BEGIN{if(!$ARGV[0]){$^I=~y/_/ /;print"$^I\n";exit}$^I='.bak'}#       Joey Hess
s/\bnoframes\b/noFrames/g;s/\bframeset\b/frameSet/g#          joey@kite.ml.org
#Remove frames from Netscape forever! <http://kite.ml.org/~joey/framefree.cgi>


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: