[Gllug] Crontab schedule question

Alain Williams addw at phcomp.co.uk
Thu Nov 17 11:19:20 UTC 2005


On Thu, Nov 17, 2005 at 11:11:37AM +0000, Stig Brautaset wrote:
> 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.

Nooooo !! That would be horribly fragile. Just think what happens if
something fails and stops that 'at' job resubmitting itself.

-- 
Alain Williams
Parliament Hill Computers Ltd.
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/

#include <std_disclaimer.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20051117/b038fc73/attachment.pgp>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list