Reputation: 4588
I have the following crontab record:
* 17 * * 5 /usr/share/app/bin/run.sh
I expect it to run every Friday at 17.00, but looks like the task is executed first at 17.00 and then approximately every minute till 18.00
What is wrong here?
Upvotes: 0
Views: 61
Reputation: 2191
The * is a wildcard, use
00 17 * * 5 /usr/share/app/bin/run.sh
It makes sense that
* 17 * * 5 /usr/share/app/bin/run.sh
runs every minute until 18:00 b/c * 17
keeps matching.
Upvotes: 2