From owner-freebsd-questions Tue Dec 17 12:12:28 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 431EB37B401 for ; Tue, 17 Dec 2002 12:12:26 -0800 (PST) Received: from gatekeeper.microcell.ca (gatekeeper.microcell.ca [205.151.8.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4762C43EB2 for ; Tue, 17 Dec 2002 12:12:25 -0800 (PST) (envelope-from SoHo@admin.fido.ca) Received: from mailserv.microcell.ca (mailserv.microcell.ca [10.2.0.87]) by gatekeeper.microcell.ca (Postfix) with ESMTP id 97BF316D12; Tue, 17 Dec 2002 15:12:19 -0500 (EST) Received: from 127.0.0.1 (localhost [127.0.0.1]) by mailserv.microcell.ca (Postfix) with SMTP id 5525E16BC7; Tue, 17 Dec 2002 15:12:19 -0500 (EST) Received: from lenard.admin.fido.ca (lamus.fido.ca [10.0.1.45]) by mailserv.microcell.ca (Postfix) with ESMTP id 4F64B16BC7; Tue, 17 Dec 2002 15:12:18 -0500 (EST) Received: from magni.microcell.ca (magni.microcell.ca [10.6.22.102]) by lenard.admin.fido.ca (SMTP_Gateway) with ESMTP id 20A1747F97; Tue, 17 Dec 2002 15:12:18 -0500 (EST) Received: from magni.microcell.ca (localhost.microcell.ca [127.0.0.1]) by magni.microcell.ca (8.12.6/8.12.6) with ESMTP id gBHKEnqY038197; Tue, 17 Dec 2002 15:14:49 -0500 (EST) (envelope-from SoHo@admin.fido.ca) Received: (from ebaroud@localhost) by magni.microcell.ca (8.12.6/8.12.6/Submit) id gBHKEn2l038196; Tue, 17 Dec 2002 15:14:49 -0500 (EST) X-Authentication-Warning: magni.microcell.ca: ebaroud set sender to SoHo@admin.fido.ca using -f Date: Tue, 17 Dec 2002 15:14:49 -0500 From: Edmond Baroud To: pura life CR Cc: FreeBSD-questions@FreeBSD.ORG Subject: Re: stderr redirection Message-ID: <20021217201449.GA38112@admin.fido.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: Mutt/1.4i Organization: Microcell X-URL: http://www.fido.ca/ X-Sanitizer: This message has been sanitized! X-Sanitizer-Rev: $Id: Sanitizer.pm,v 1.25 2001/09/04 15:49:11 bre Exp $ 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 dude, in =3D 0 out =3D 1 err =3D 2 and by putting >2 in after your =02grep foo=02 command your redirecting your stdout to a file called 2. to redirect stderr to /dev/null u can do: =02%du -a / | grep foo 2>/dev/null=02 regards, Ed. Quoting pura life CR (puralifecr@hotmail.com): > (1) Hi, I would like to know how can I redirect stdin, stdout and/or stde= rr=20 > from an interactive shell? >=20 > (2) I am confused, it's smthg like %du -a / | grep foo >2 /dev/null ? > In this case, I am looking for certain files and I dont want to view=20 > annonying message such as "permised denied" so the goal is redirect stder= r=20 > to /dev/null, howto??. >=20 >=20 > regards, >=20 >=20 >=20 >=20 > _________________________________________________________________ > =DAnete al mayor servicio mundial de correo electr=F3nico:=20 > http://www.hotmail.com >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message --=20 Edmond Baroud=20 UNIX Systems Admin mailto:SoHo@admin.fido.ca Fingerprint 140F 5FD5 3FDD 45D9 226D 9602 8C3D EAFB 4E19 BEF9 "UNIX is very user friendly, it's just picky about who its friends are." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message