Friday, February 27, 2009

Cron Job Sandbox

Check out this Web site for your crob job schedule settings.

http://www.cronsandbox.com/

Although some advanced crontab setting may work in this sandbox, they may not work in some versions of Linux. The one failed to work properly in my CentOS 5.2 is:

22 7 1-7 * 2

This setting should mean the first Tuesday every month, but actually it is launched on the first day of every month.

For this type of sophisticated scheduling, I ended up using an external Windows box running plink.exe to remote the cron job.

No comments: