Version A.01 H3064S Module 14 Slides Scheduling cron Jobs Version A.01 H3064S Module 14 Slides
The cron Daemon Executes commands at specified dates and times Automates routine tasks Examples: Trimming system log files Performing system backups Generating weekly reports a66964
cronfile cronfile contains one line for each schedule job. Example: # min # 0-59 hour 0-23 * 6 5 date 1-31 * 1,15 month 1-12 * day 0-6 * 1-5 command must redirect output! /usr/bin/date >/dev/console >/var/adm/btmp /usr/bin/who | /usr/bin/lp a6979
Managing cronfile with crontab Edit and submit a cronfile: crontab -e View your cronfile: crontab -l Remove all your scheduled cron jobs: crontab -r a66966
What Happens When a Job is Scheduled? /var spool adm cron cron crontabs cron.allow cron.deny user1 user2 root a66967