Skip to content

Commit 94f8621

Browse files
author
8go
authored
additions
1 parent fa57583 commit 94f8621

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

crontab

+15
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1+
---
2+
tags: [ job, scheduler, periodic ]
3+
---
14
# set a shell
25
SHELL=/bin/bash
36

7+
# set a PATH
8+
PATH=/usr/bin:/usr/sbin:/usr/local/bin
9+
10+
# incorrect way of seeting PATH
11+
PATH=$PATH:/do/not/do/this
12+
413
# crontab format
514
* * * * * command_to_execute
615
- - - - -
@@ -20,3 +29,9 @@ SHELL=/bin/bash
2029

2130
# every Saturday at 8:05 AM
2231
5 8 * * 6 /home/user/command.sh
32+
33+
# compute your crontab periodicity format online
34+
https://crontab.guru/
35+
36+
# be careful with % sign (percent), it has special meaning, see https://crontab.guru/ for explanation
37+
% signs must be escaped such as \%

0 commit comments

Comments
 (0)