Changes

Jump to: navigation, search

OPS335 Lab 1

1 byte added, 03:01, 9 May 2016
m
Making the cron entries in the example accumulate in the log instead of overwriting.
Every user has a crontab (Cron Table) which is a list of tasks they want to run periodically. You do not edit this file manually: instead, you edit this table using the command '''crontab -e'''. Once you run the command, you will get an empty file where you have to insert a line like this:
<pre>10 * * * * echo "Cron ran this job at: "`date` >> /tmp/cron.log</pre>
This tells cron to run the command '''echo "Cron ran this job at: "`date` > /tmp/cron.log''' at the 10th minute of every hour of every day of every month.
932
edits

Navigation menu