Crontab question

HI all,

I would want to schedule a job to run every 2 weeks. In the mean time, i'm only able to schedule on every week. Is it possible to schedule 2 weeks on crontab?

Thank you.

add a wapper script.

date +%W will give a week number, the modulus 2 of that number is 0 or 1, giving you even or odd week numbers.

You can test that condition and execute your script based on the result.

Hi,

I'm new in unix field, currently i'm searching on wrapper scripts. Is there any samples or url for me to refer? Thanks

Jess, here are the FAQs. Check the technical FAQ area in that. There you will find all sorts of links to other threads like date arithmetic and tutorials. Check these out.