Redirect to /dev/null

Charles Howse chowse at
Fri Oct 10 13:51:12 PDT 2003

> What is the proper way to redirect output to /dev/null? I've 
> been using the following in my crontab but output is still 
> ending up in my mailbox.
> ... 2>&1 > /dev/null

The ampersand preceeds the greater-than symbol, and you redirect STDOUT
to /dev/null, and then redirect STDERR to STDOUT.

 ... > /dev/null 2&>1


More information about the freebsd-questions mailing list