Crontab: Difference between revisions
From James's Wiki
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
send ALL (even errors) to null: | send ALL (even errors) to null: | ||
* * * * * root /usr/local/sbin/mycommand.sh | * * * * * root /usr/local/sbin/mycommand.sh <code>> /dev/null 2>&1</code> | ||
send only normal output to null (will still email errors): | send only normal output to null (will still email errors): | ||
* * * * * root /usr/local/sbin/mycommand.sh | * * * * * root /usr/local/sbin/mycommand.sh <code>> /dev/null</code> | ||
[[File:Crontab examples.webp|thumb]] |