Changes

Jump to: navigation, search

OPS235 Lab 5

114 bytes added, 10:11, 5 October 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>. 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 from 90 to <b><code><span style="color:#3366CC;font-size:1.2em;">30ALERT=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?
# Exit from the mail command.
13,420
edits

Navigation menu