Skip to content

Commit

Permalink
Merge pull request cheat#34 from 8go/patch-2
Browse files Browse the repository at this point in the history
additions
  • Loading branch information
chrisallenlane authored Aug 29, 2020
2 parents fa57583 + 94f8621 commit 0703cac
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions crontab
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
---
tags: [ job, scheduler, periodic ]
---
# set a shell
SHELL=/bin/bash

# set a PATH
PATH=/usr/bin:/usr/sbin:/usr/local/bin

# incorrect way of seeting PATH
PATH=$PATH:/do/not/do/this

# crontab format
* * * * * command_to_execute
- - - - -
Expand All @@ -20,3 +29,9 @@ SHELL=/bin/bash

# every Saturday at 8:05 AM
5 8 * * 6 /home/user/command.sh

# compute your crontab periodicity format online
https://crontab.guru/

# be careful with % sign (percent), it has special meaning, see https://crontab.guru/ for explanation
% signs must be escaped such as \%

0 comments on commit 0703cac

Please sign in to comment.