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