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 1/2] 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 From cfb9603439386f18cbc7ee7a3621c2aaf2649d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 26 Nov 2013 18:13:16 +0100 Subject: [PATCH 2/2] crontab: fix typo in comment --- cheatsheets/crontab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheatsheets/crontab b/cheatsheets/crontab index 580e0fd..d567c20 100644 --- a/cheatsheets/crontab +++ b/cheatsheets/crontab @@ -11,7 +11,7 @@ SHELL=/bin/bash | +------- hour (0 - 23) +--------- minute (0 - 59) -# examples entries +# example entries # every 15 min */15 * * * * /home/user/command.sh # every midnight