Open main menu

CDOT Wiki β

Changes

OPS245 Lab 5

3 bytes removed, 18:05, 25 September 2021
m
INVESTIGATION 3: Scripting: - changing script extensions to py, not bash.
<ol>
<li>Make a copy of of "monitor-disk-space.bashpy" called '''disk-monitor.bashpy''' 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 '''getoptsargparse''' 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>
932
edits