cron question

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: sinck@corp.quepasa.comsinckcorp.quepasa.com
Date:  
Subject: cron question

\_ 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