Open main menu

CDOT Wiki β

Changes

OSL740 Lab 5

12 bytes removed, 18:01, 2 March 2022
m
Part 2: Using crontab to Automatically Alert System Administrator of Low Hard Disk Space: - updating link to disk monitoring script
#Perform this section in your '''c7host''' machine
#Change to your '''bin''' directory.
#Download the following shell script by issuing the following command: <br><b><code><span style="cursor:default;color:#3366CC;font-size:1.2em;">wget https://ictosl740.senecacollegegithub.ca/~ops245io/labs/monitor-disk-space.py</span></code></b>
#Try to understand what this script does (refer to man pages for the '''awk''' command), and then run the script with elevated permissions.
#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.
932
edits