Date: Mon, 14 Jan 2002 11:53:39 -0600 From: Christopher Schulte <schulte+freebsd@nospam.schulte.org> To: adrian kok <adriankok2000@yahoo.com.hk>, zaa@ulstu.ru Cc: questions@FreeBSD.ORG Subject: Re: /dev/null 2>&1 Message-ID: <5.1.0.14.0.20020114115025.0372fe90@pop3s.schulte.org> In-Reply-To: <20020114174940.72104.qmail@web21210.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
At 01:49 AM 1/15/2002 +0800, adrian kok wrote: >Hi Zaa > >Thank you. But what is the purpose for it on the >system? Often when a command ( compile or cron job, for example ) wants to restrict certain output. In such cases the output might: confuse the user, add jabber to the console, or generate unwanted email messages. > >for example, if you type > > >find / -name foo > /dev/null 2>&1 > >is seems that stdin is redirected to nowhere >(/dev/null) >and stderr is redirected to stdout e.g to /dev/null >too --chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.0.20020114115025.0372fe90>