cron question / process queue

Bruce Dawson jbd at codemeta.com
Fri Mar 7 11:16:44 EST 2008


You can also use dotlockfile, lockfile, or dotlock to create a lock file
for each task that is running. Then have the 'daily' script kick off the
right process for whichever lockfile is not there.

Of course, the task has to remove the lock file when its done.

--Bruce

Kent Johnson wrote:
> Steven W. Orr wrote:
>   
>> Still sounds like a job for "at",  no?
>>     
>
> I don't see it. I have monthly, weekly and daily jobs that I want to run 
> sequentially, in that order, starting at 8pm. How would I do that using 
> 'at'? Preferably without making the actual jobs know about each other, 
> e.g. not teaching the weekly job that it should be followed by the daily 
> job.
>
> I made a combined job that basically does this:
> if it is the first of the month:
>    run monthly job and wait for completion
> if it is Saturday:
>    run the weekly job and wait for completion
> run the daily job
>
> The combined job is scheduled for 8pm execution with cron. Seems to work 
> so far...
>
> Kent
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss at mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
>   



More information about the gnhlug-discuss mailing list