Need to direct to >2&1 for cron?
Heard that cron will generate an e-mail whenever it executes a line, and to prevent this, each cron line should have >2&1 appended at the end. Is this true?
|
Mostly true; you need ">/dev/null 2>&1"
|
To clarify, cron only sends e-mails when the executed program is outputting something in either its stdout or stderr. These redirections are discarding these potential outputs.
|
All times are GMT -5. The time now is 04:16 AM. |