Changes

Jump to: navigation, search

OPS235 Lab 5

152 bytes added, 10:55, 7 November 2016
no edit summary
#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.
#Issue the follow command: <b><code><span style="color:#3366CC;font-size:1.2em;">mail</span></code></b>(if you get an error, install email by issuing the command: <b><code><span style="color:#3366CC;font-size:1. 2em;">yum install mailx</span></code></b><br>Check to see if there are any mail messages. If there are mail messages, they do not relate to this shell script execution. Remove all mail messages by typing d immediately followed by a mail message number range (eg. to remove all messages. For example, if there are 5 messages, type '''d1-5''' and then press '''ENTER''' and enter '''q''' to exit the mail application).
#Edit the '''monitor-disk-space.bash''' shell script, and set the <b><code><span style="color:#3366CC;font-size:1.2em;">ALERT=90</span></code></b> value to <b><code><span style="color:#3366CC;font-size:1.2em;">ALERT=10</span></code></b>. Then save your editing session, and re-run this shell script.
#Run the '''mail''' command. Do you have a mail message? Enter the mail message number to view the message. If there is a message, what is the purpose of this message?
13,420
edits

Navigation menu