Open main menu

CDOT Wiki β

Changes

OPS235 Lab 5 - CentOS7

389 bytes added, 09:22, 4 May 2015
no edit summary
<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 following 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 linein order to run at 6:00 on the first day of every month:<br><b><code><span style=" pointer-events:none;cursor:default;color:#3366CC;font-size:1.2em;">x00 6 1 * * /root/monitor-disk-space.bash #Runs at 6:00 am on the first day of every month</span></code></b></li><li>Save the file entry.</li><li>Confirm that the entry was properly saved by issuing the following command:<br><b><code><span style=" pointer-events:none;cursor:default;color:#3366CC;font-size:1.2em;">crontab -l</span></code></b></li></ol>
'''Answer Investigation 3 observations / questions in your lab log book.'''
13,420
edits