View Single Post
Old 29-Nov-2007, 02:44 AM   #2 (permalink)
Anilrgowda
Administrator
 
Anilrgowda's Avatar

Posts: 18,715
Join Date: Jan 2006
Rep Power: 10 Anilrgowda is on a distinguished road

IM:
Default Re: Cron job that runs every other saturday

You may configure the crontab job to run every sat via a script that will do something like:

if test -f /mydir/ranlastweek
then
rm /mydir/ranlastweek
exit
fi
touch /mydir/ranlastweek
other commands to run the job

This is a logic to test if the job was ran last week, if yes then just remove the file and exit, other wise create the file and run the job.


------------------


Anilrgowda is offline   Reply With Quote