Automating Tasks - Lab Exercises
Exercise 1: Logged data
- Review the configuration file for the machine and discover where
syslog files are stored.
- Create a script that will zero out these files.
- Add this script to the list of cron entries for root to be executed daily.
- Remove this entry from root's crontab.
Exercise 2: Crontab entries
- Create a crontab entry for your user account that
mails the current process status information, hourly.
- Modify the crontab entry to store the current process status
information to a file called /var/tmp/ps.current, at
9:00AM, noon and 5:00PM.