Cron: Difference between revisions
imported>Sjau No edit summary |
imported>Sjau No edit summary |
||
| Line 14: | Line 14: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
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>. For more information regarding the cronjob entries, see the link below. | ||
==Loading environment== | ==Loading environment== | ||
| Line 25: | Line 25: | ||
The <tt>. /etc/profile;</tt> part first sources the profile file and hence loading the environment. After that, the actual command is being run in the proper environment. The above entry would run the rss2email program every 10 minutes as user <tt>johndoe</tt> | The <tt>. /etc/profile;</tt> part first sources the profile file and hence loading the environment. After that, the actual command is being run in the proper environment. The above entry would run the rss2email program every 10 minutes as user <tt>johndoe</tt> | ||
=See also= | |||
* [https://linux.die.net/man/5/crontab crontab(5): tables for driving cron] | |||
[[Category:Configuration]] | [[Category:Configuration]] | ||