On Fri, Jun 24, 2005 at 09:54:11AM -0700, Neil Parker wrote:
> Rob Hudson wrote,
> >How does one disable the output of certain cron jobs?  I have some 
> >backup scripts running and other things and don't need to see all of 
> >that stuff in an email.  Can I silently discard the output of those 
> >scripts that run?
> 
> The incantation I usually use is this:
> 
>      myscript.sh >/dev/null 2>&1
> 
> where "myscript.sh" is the script to be run by the cron job.  This goes in
> the crontab file, in the "command to be run" field.
> 
> The ">/dev/null" discards the standard output, and "2>&1" says to send the
> standard error to the same place as the standard output.

dunno about linux cron, but you can set MAILTO to "" in the crontab
file on BSD if you don't want emails.

-- 
<[EMAIL PROTECTED]>
_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to