quser
January 14th, 2013, 06:00 AM
Hi All,
The following entry in my crontab is excecuted daily, when it should only run on the 1st and 16th of the month:
30 4 1,16 * 0,6 touch /home/quser/testfile >/dev/null 2>&1
30 2 1,16 * 1-5 touch /home/quser/testfile >/dev/null 2>&1
Unless I'm missing something completely obvious, testfile should be created at 2:30 am Monday-Friday, and at 4:30 am on Saturday and Sunday, but only when it is the 1st or 16th of the month. However, testfile is created every day, either at 2:30 am (Monday-Friday) or 4:30 am (Saturday, Sunday).
This is on Ubuntu Server 12.04.1 LTS, with the latest updates applied.
Any idea what's going on?
Thanks!
The following entry in my crontab is excecuted daily, when it should only run on the 1st and 16th of the month:
30 4 1,16 * 0,6 touch /home/quser/testfile >/dev/null 2>&1
30 2 1,16 * 1-5 touch /home/quser/testfile >/dev/null 2>&1
Unless I'm missing something completely obvious, testfile should be created at 2:30 am Monday-Friday, and at 4:30 am on Saturday and Sunday, but only when it is the 1st or 16th of the month. However, testfile is created every day, either at 2:30 am (Monday-Friday) or 4:30 am (Saturday, Sunday).
This is on Ubuntu Server 12.04.1 LTS, with the latest updates applied.
Any idea what's going on?
Thanks!