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

Re: Time & CmdSchedule



On Sun, Dec 05, 1999 at 05:04:46PM -0800, Aaron Turner wrote:
> > * * * * * CmdSchedule --repeat 3 --email "syntax@pa.net,jpincin@linuxkb.org,aturner@linuxkb.org" --reportonfail
> But how does cron store state?  Ie, how does it know how many time it has
> already executed to know if it should run again?  

Simple, you have script change the line to --repeat (--n), when it gets to 0 
it is automatically deleted.

> CmdSchedule.pl runs via cron every minute.  It looks up what needs to be

My only concern is what happens if CmdSchedule.pl starts taking more than one
minute?  I guess that means we need a more powerful machine ;)

> Anyways, the point it that there isn't that much manual coding to be done.

In this case I'll shut up and go away now ;)

> what.  Even worse if someone ever goes in the crontab file and does a
> manual edit.

That's like saying it's bad if someone goes in and does a manual hexedit on
your database file.  Yeah, that's why you don't do it.

-- 
-------------------
Daniel E. Markle
syntax@ashtech.net
http://www.ashtech.net/syntax
-------------------