On Fri, 24 Jan 2003, Andy wrote: > So I can either put " /dev/null 2>&1 " in the script itself or I can put > it at the end of the crontab file such as this:
Yup. Putting it in your script in various places can help you fine-tune what will be emailed (if anything). Putting it in the crontab means you only have to type it once, and it will affect ALL output from the script. > # Run morning backup script at 2 am every morning > 0 2 * * * /root/backupscript /dev/null 2>&1 You still need to redirect output. You can't skip the > to /dev/null if you want it to work. Otherwise, /dev/null is simply passed as a positional parameter to /root/backupscript. :) -- "Of course I'm in shape! Round's a shape, isn't it?" -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list