cheat-fork-echo/cheat/cheatsheets/crontab

23 lines
437 B
Text
Raw Normal View History

2013-11-26 14:30:46 +01:00
# set a shell
SHELL=/bin/bash
# crontab format
* * * * * command_to_execute
- - - - -
| | | | |
| | | | +- day of week (0 - 7) (where sunday is 0 and 7)
| | | +--- month (1 - 12)
| | +----- day (1 - 31)
| +------- hour (0 - 23)
+--------- minute (0 - 59)
2013-11-26 18:13:16 +01:00
# example entries
2013-11-26 14:30:46 +01:00
# every 15 min
*/15 * * * * /home/user/command.sh
2013-11-26 14:30:46 +01:00
# every midnight
2017-08-29 18:15:53 +02:00
0 0 * * * /home/user/command.sh
2013-11-26 14:30:46 +01:00
# every Saturday at 8:05 AM
5 8 * * 6 /home/user/command.sh