Cron(ie) Tab Review Flashcards
Task scheduler Review - commands, time frame format
Edit crontab entries for the root user
sudo crontab -e
crontab -u Robert -l
View crontab entries for the user Robert
Interpret the following crontab format:
15 5 * * 0 /path/to/script.sh
Run script.sh file at 5:15am on Sundays
Set script24.sh to run every 4 days at 2 am
0 2 */4 * * /path/to/script24.sh
Interpret the following crontab format:
0 0-2 * * 7 /path/to/script07.sh
Run script07.sh from 12am to 2 am on Sundays
Interpret @monthly /path/to/script12.sh
Run script12.sh at 12 am monthly on the first day of the month
Run script48.sh on the 5th day of January, April, July and October at 11:59 pm
59 23 05 jan,apr,jul,oct * /path/to/script48.sh
Interpret the following crontab format:
”* * * * * “ /path/to/script2.sh
Run script2.sh every minute of every day
Run script10.sh every 2 hours from Wednesday to Saturday every week
00 */2 * * 3-6 /path/to/script10.sh
Run script8.sh every hour
0 * * * * path/to/script8.sh
-OR-
@hourly /path/to/script8.sh
Run script12.sh at 12 am monthly on the first day of the month
- @monthly /path/to/script12.sh
- interpret 0 0 1 * * /path/to/script4.sh
- ”* 0 1 * * “ /path/to/script4.sh
0 2 4 * * /path/to/script24.sh
Set script24.sh to run on the 4th day of every month at 2 am