Open main menu

CDOT Wiki β

Changes

Lab 5 Warnings / Debrief

4 bytes added, 07:31, 12 November 2015
no edit summary
<pre style="font-size:14pt;font-family:courier;">
# Check every minute for logins by user “evil”“elvis”* * * * * who | grep '^evilelvis'
#
# Run a script called "ascript.bash" every odd hour (1,3 5...) during the week
0 1,3,5,7,9,11,13,15,17,19,21,23 * * 1-5 /home/bob/ascript.bash
 
# Run "ascript.bash" every half hour during the week
0 */2 * * 1-5 /home/bob/ascript
 
# Same... just doing it a different way
0 */2 * * mon,tue,wed,thu,fri /home/bob/ascript
 
</pre>
13,420
edits