Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
linux_wiki:cron [2017/09/03 17:47] billdozor [Automation Example] |
linux_wiki:cron [2017/09/03 17:50] billdozor [Automation Example] |
||
---|---|---|---|
Line 143: | Line 143: | ||
In this example, we want a script to execute on the 1st, 2nd, and 3rd Tuesday of every month, with different arguments depending upon which Tuesday it is. | In this example, we want a script to execute on the 1st, 2nd, and 3rd Tuesday of every month, with different arguments depending upon which Tuesday it is. | ||
- | | + | |
- | | + | |
# | .------------- hour (0 - 23) | # | .------------- hour (0 - 23) | ||
# | | .---------- day of month (1 - 31) | # | | .---------- day of month (1 - 31) | ||
Line 156: | Line 156: | ||
00 08 * * tue root / | 00 08 * * tue root / | ||
</ | </ | ||
- | - Date checker script: Determine if the actual automated program should run and what arguments to send it. | + | |
- | | + | * Date checker script: Determine if the actual automated program should run and what arguments to send it. |
+ | | ||
# Title: automated-job-check.sh | # Title: automated-job-check.sh | ||
# Description: | # Description: | ||
Line 196: | Line 197: | ||
echo -e "==== Log Ended: $(date) ====\n" | echo -e "==== Log Ended: $(date) ====\n" | ||
</ | </ | ||
- | - The above date checker script | + | |
---- | ---- | ||