Redirect to /dev/null
Charles Howse
chowse at charter.net
Fri Oct 10 14:26:31 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
Whooops! Sorry...
It should be:
... > /dev/null 2>&1
The the greater-than symbol preceeds the ampersand .
I was too quick on the trigger!
More information about the freebsd-questions
mailing list