Open main menu

CDOT Wiki β

Changes

OPS235 Lab 5

21 bytes removed, 22:33, 27 October 2019
Part 2: Using crontab to Automatically Alert System Administrator of Low Hard Disk Space
#Make certain you are logged in as '''root'''.
#Change to the '''/root/bin''' directory.
#Download the following shell script by issuing the following command: <br><b><code><span style=" pointer-events:none;cursor:default;color:#3366CC;font-size:1.2em;">wget https://ict.senecacollege.ca/~ops235/lab5/monitor-disk-space.bash</span></code></b>
#Try to understand what this Bash Shell script does (refer to man pages for the '''awk''' command), and then run the script as root.
#Give execute permissions and run this shell script. This script is supposed to notify the root user by email if there are any potential partition size issues.
572
edits