[Gllug] Crontab schedule question

Stig Brautaset stig at brautaset.org
Thu Nov 17 11:11:37 UTC 2005


On 17 Nov 2005, at 10:53, Kurt Goodliff wrote:
> I need to configure a job to run every second monday at 12:00. I've  
> got the job running on a weekly basis at the moment but am a little  
> confused about how to get it to skip a week.

I've never had to do this, but it seems hard using only cron. You may  
have to add smarts to the program being run (or a small wrapper  
around this program).

You should be able to solve your problem without adding smarts to  
your program by using "at". Schedule two jobs; one that executes your  
job, and another that schedules it and itself to run again in 14  
days. "man at" for details.

Stig

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list