On 05/02/2015 21:19, Joseph wrote: > I have a cron tab entry: > 8 12 1-7 * 1 rsync ... > > I was under impression that it will run once a month on Monday but it > seems to be running every day, why? >
As Florian explained, crontab syntax gets weird when you use fields 3 and 5. Basically, what you want to do cannot be done in a plain crontab. You might be able to leverage anacron to accomplish what you want. Otherwise, you must write a wrapper script that runs daily or on Mondays and checks a flag file that it creates and only run once in a given month -- Alan McKinnon [email protected]

