From ccc3c0b87893769e5adeb9ab1348ca82683629fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 26 Nov 2013 14:30:46 +0100 Subject: [PATCH] add crontab examples --- cheatsheets/crontab | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 cheatsheets/crontab diff --git a/cheatsheets/crontab b/cheatsheets/crontab new file mode 100644 index 0000000..580e0fd --- /dev/null +++ b/cheatsheets/crontab @@ -0,0 +1,20 @@ +# 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) + +# examples entries +# every 15 min +*/15 * * * * /home/user/command.sh +# every midnight +0 * * * * /home/user/command.sh +# every Saturday at 8:05 AM +5 8 * * 6 /home/user/command.sh