From owner-freebsd-questions Mon Jan 14 9:54:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from clink.schulte.org (clink.schulte.org [209.134.156.193]) by hub.freebsd.org (Postfix) with ESMTP id D7B7A37B402 for ; Mon, 14 Jan 2002 09:54:16 -0800 (PST) Received: from schulte-laptop.nospam.schulte.org (nb-65.netbriefings.com [209.134.134.65]) by clink.schulte.org (Postfix) with ESMTP id C5338243CD; Mon, 14 Jan 2002 11:54:15 -0600 (CST) Message-Id: <5.1.0.14.0.20020114115025.0372fe90@pop3s.schulte.org> X-Sender: X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 14 Jan 2002 11:53:39 -0600 To: adrian kok , zaa@ulstu.ru From: Christopher Schulte Subject: Re: /dev/null 2>&1 Cc: questions@FreeBSD.ORG In-Reply-To: <20020114174940.72104.qmail@web21210.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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