Date: Fri, 10 Oct 2003 15:51:03 -0500 From: "Charles Howse" <chowse@charter.net> To: "'Max Clark'" <maxc-freebsd-questions@beast.clarksys.com>, <freebsd-questions@freebsd.org> Subject: RE: Redirect to /dev/null Message-ID: <002701c38f70$383173e0$04fea8c0@moe> In-Reply-To: <20031010202755.GA74202@beast.clarksys.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> What is the proper way to redirect output to /dev/null? I've=20 > been using the following in my crontab but output is still=20 > ending up in my mailbox. >=20 > ... 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 =20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002701c38f70$383173e0$04fea8c0>