Changes

Jump to: navigation, search

OPS245 Lab 5

14 bytes added, 08:35, 6 March 2021
m
INVESTIGATION 3: Scripting
<ol>
<li>Make a copy of of "monitor-disk-space.bash " called '''disk-monitor.bash ''' and place it in your user's bin directory.</li>
<li>Keep the original preamble comments in the script, but add a line indicating that you modified it (and when you did so). Make sure you indicate the change in script name too.</li>
<li>Modify the script so that it will use '''getopts ''' to accept command line input from the user for their preferred values for who to send the email to, and what percentage of use is worth sending an email over.
::You may choose the letters for each of these options, just document your choice in the comments in the script.
::Make sure your script keeps the original values as defaults, in case the user doesn't specify one of them (i.e. if they don't use the option to set who to send the email to, just continue to use root).</li>
572
edits

Navigation menu