|
Practical Exercises with at and cron
Complete the exercises below on run01 VM
Create a script, mem.sh, to check memory status:
Make it executable and run through at:
Run atq to make sure the job is scheduled.
In a minute, check content of a new file, mem.out;
run atq again.
Remove file mem.out. Modify the script specifying the full path to
your home directory in "of", i.e. "of=/home/your_username/mem.out".
Add the following entry in /etc/crontab before the line "# run-parts":
Check if the content of mem.out is updated every 2 minutes.
|
|