cron question

sinck@corp.quepasa.com sinck@corp.quepasa.com
Wed, 14 Jun 2000 08:09:17 -0700 (MST)


\_ How do I set up cron to run every other week on Tuesday??

Cron itself or a cron'd job?  :-)

Assuming the latter, looks like you're gonna need some homebrew to
determine if it's (week % 2) or not.  I'd prolly cron for every
Tuesday and either have a wrapper script that proceeds if (week % 2)
or put it in the exe as an option (in case you need to run it by hand
later.) 

% mycronjob -h
usage: mycronjob [flags]
-h : this help
-c : run from cron (calculate every other week)
-s : run standalone (not from cron)


YMMV near the turn of the year based on variant week endings for 
Dec 31 xxxx and starts for Jan 01 xxxy.

David