mirror of
https://github.com/ebrandi/FDD-book.git
synced 2026-12-06 00:23:30 +00:00
Organize companion code and materials by book part: part-01/ Foundations part-02/ Kernel & driver fundamentals part-03/ Character & block devices part-04/ Networking & storage part-05/ Buses & advanced topics part-06/ Debugging & performance part-07/ Real-world drivers appendices/ Supplementary material README.md Overview and build instructions
28 lines
974 B
Text
28 lines
974 B
Text
# Sample crontab entries for Chapter 3's "Scheduling and Automation"
|
|
# section. These are illustrative lines from the chapter, collected
|
|
# here so the reader can copy/paste them into `crontab -e`.
|
|
#
|
|
# Cron format (five time fields + command):
|
|
#
|
|
# .----------------- minute (0 - 59)
|
|
# | .-------------- hour (0 - 23)
|
|
# | | .----------- day of month (1 - 31)
|
|
# | | | .-------- month (1 - 12)
|
|
# | | | | .----- day of week (0 - 6, Sun = 0)
|
|
# | | | | |
|
|
# * * * * * command
|
|
|
|
# Run every day at midnight
|
|
0 0 * * * /usr/bin/date >> /home/dev/midnight.log
|
|
|
|
# Run every 15 minutes
|
|
*/15 * * * * /home/dev/scripts/check_disk.sh
|
|
|
|
# Run every Monday at 8 AM
|
|
0 8 * * 1 echo "Weekly meeting" >> /home/dev/reminder.txt
|
|
|
|
# Run at 3:30 AM on the first of every month
|
|
30 3 1 * * /usr/local/bin/backup.sh
|
|
|
|
# Daily backup with output captured (stderr folded into the log file)
|
|
0 0 * * * /home/dev/backup.sh >> /home/dev/backup.log 2>&1
|