PDA

View Full Version : Stopping Cron Job Email or Making a Log File


jmackler
08-29-2006, 05:39 PM
I have a cron job that runs every five minutes. The system is sending me an email (as it should) to notify me of the results. How can I stop this? Can it just write it to a log file, or not do anything?

Thanks,
Jeff

hehachris
09-02-2006, 10:36 PM
add this to end of your command:


>/dev/null 2>&1




for example:

*/5 * * * * /path/abc.sh >/dev/null 2>&1