Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 May 2006 14:53:05 +0200
From:      =?ISO-8859-1?Q?K=F6vesd=E1n_G=E1bor?= <gabor.kovesdan@t-hosting.hu>
To:        Grant Peel <gpeel@thenetnow.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: 2>&1
Message-ID:  <44799D31.6090400@t-hosting.hu>
In-Reply-To: <00d601c68254$b814c330$6501a8c0@grant>
References:  <00d601c68254$b814c330$6501a8c0@grant>

next in thread | previous in thread | raw e-mail | index | archive | help
Grant Peel wrote:
> Hi all,
>
> When using cron, I understand the >/dev/null thing OK, but what 
> exactly does >2&1 do? Is it usefull anywhere else? Where might one 
> find ducumentation on it?
>
> -Grant
>
The standard stream stdout has the assigned number 1, and the stderr has 
number 2. The >/dev/null redirects stdout to /dev/null and 2>&1 means 
redirecting stderr to stdout, so it goes to /dev/null as well.

Gabor Kovesdan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44799D31.6090400>