From owner-freebsd-questions Sat Dec 23 10:43:56 2000 From owner-freebsd-questions@FreeBSD.ORG Sat Dec 23 10:43:52 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from johnson.mail.mindspring.net (johnson.mail.mindspring.net [207.69.200.177]) by hub.freebsd.org (Postfix) with ESMTP id 480F337B402 for ; Sat, 23 Dec 2000 10:43:52 -0800 (PST) Received: from freebsd.mindspring.com (user-33qtbvm.dialup.mindspring.com [199.174.175.246]) by johnson.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id NAA12006 for ; Sat, 23 Dec 2000 13:43:51 -0500 (EST) Received: by freebsd.mindspring.com (8.11.1/8.11.1) id eBNIhO500379 for questions@FreeBSD.ORG; Sat, 23 Dec 2000 12:43:24 -0600 (CST) (envelope-from david) Date: Sat, 23 Sep 2000 00:23:13 -0500 From: "David J. Kanter" To: "questions@FreeBSD.ORG" Subject: Re: "make" output redirected to file Message-ID: <20000923002313.A47384@freebsd.mindspring.com> Mail-Followup-To: "questions@FreeBSD.ORG" References: <39CBB5C4.E494B639@home.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from matt@gsicomp.on.ca on Fri, Sep 22, 2000 at 11:56:41PM -0400 X-Operating-System: FreeBSD 4.1-STABLE Lines: 30 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 22, 2000 at 11:56:41PM -0400, Matthew Emmerton wrote: > If you're using ksh or sh as your shell, executing 'command 2>&1 > file' > works well. (The logic here is this: 2>&1 says to redirect file handle 2 > (stderr) to file handle 1 (stdout), which is then redirected to file.) ---end quoted text--- I think it's the other way around (i.e., 2 is stdout and 1 is stderr). --=20 David Kanter --PNTmBPCT7hxwcZjr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.3 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE5zD5BWfgr3tXvHGIRAuBuAJ4mL20n3KIm1G95MoHTz1esleVKnQCdEJLz zmQY3D6/AvVmXEYz70lbcv0= =fJCK -----END PGP SIGNATURE----- --PNTmBPCT7hxwcZjr-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message