Cron: Difference between revisions
imported>Sjau Created page with "=Using Cron= ==General== Cron is a very useful tool to run stuff at predefined times. Users, if allowed, can setup their own cron job, while the system crontab can be easily..." |
imported>Sjau No edit summary |
||
| Line 15: | Line 15: | ||
The above example would run the command <tt>date >> /tmp/cron.log</tt> as <tt>root</tt> user every <tt>5 minutes</tt> (indicated by <tt>*/5*</tt>. | The above example would run the command <tt>date >> /tmp/cron.log</tt> as <tt>root</tt> user every <tt>5 minutes</tt> (indicated by <tt>*/5*</tt>. | ||
==Loading environment== | |||
However, sometimes cron won't run because it's missing the according environment (as it is the case for rss2email as example). In that case you just have to source the profile file first before running the desired command, like in the example below: | However, sometimes cron won't run because it's missing the according environment (as it is the case for rss2email as example). In that case you just have to source the profile file first before running the desired command, like in the example below: | ||