Changes

Jump to: navigation, search

OPS235 Lab 5 - CentOS7

425 bytes added, 10:18, 4 May 2015
no edit summary
We will now use shell scripting to help automate the task for a Linux administrator to be notified of potential disk space issues.
#Make certain you are logged in as '''root'''.
#Download, study, and run the following shell script. Issue the command:<br><b><code><span style=" pointer-events:none;cursor:default;color:#3366CC;font-size:1.2em;">wget https://scs.senecac.on.ca/~murray.saul/monitor-disk-space.bash</span></code></b>
#Try to understand what these Bash Shell scripts do, and then run the script as root.
In order to automatically run the above-mentioned script periodically, you use the scheduler in Linux called '''crontab'''. The term crontab stands for '''Chronograph Tables''', where a chronograph is the old term for a timepiece (the forerunner of the modern watch). You can run the crontab command to schedule commands and shell script to be run in a number of different ways.
# <ol> <li value="4">Quickly view the tutorial about the <b>[http://v1.corenominal.org/howto-setup-a-crontab-file/ Using crontab]</b> file to understand the purpose of this file and how to basically set up a schedule to run a shell script.</li> <li>Issue the major elements contain in this filefollowing command to setup a crontab entry for root:<br><b><code><span style=" pointer-events:none;cursor:default;color:#3366CC;font-size:1.2em;">crontab -e</span></code></b></li><li>Enter the following line:<br><b><code><span style=" pointer-events:none;cursor:default;color:#3366CC;font-size:1.2em;">x</span></code></b>
'''Answer Investigation 3 observations / questions in your lab log book.'''
13,420
edits

Navigation menu