![]() OR 0 * * * * /path/to/command arg1 > /dev/null 2>&1 || true OR 0 1 5 10 * /path/to/script.sh > /dev/null ![]() This will prevent mail command spam when you type the mail command:Ĭron job example to disable the email alertĪppend string >/dev/null 2>&1 to stop mail alert: 0 1 5 10 * /path/to/script.sh >/dev/null 2>&1 To prevent the sending of errors and output, add any one of the following at the end of the line for each cron job to redirect output to /dev/null. ![]() ![]() Cron job prevent the sending of errors and output ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |