From owner-freebsd-questions Fri Sep 22 22:23:13 2000 Delivered-To: freebsd-questions@freebsd.org Received: from tisch.mail.mindspring.net (tisch.mail.mindspring.net [207.69.200.157]) by hub.freebsd.org (Postfix) with ESMTP id 34BBE37B42C for ; Fri, 22 Sep 2000 22:23:09 -0700 (PDT) Received: from freebsd.mindspring.com (user-33qt9ms.dialup.mindspring.com [199.174.166.220]) by tisch.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id BAA16009 for ; Sat, 23 Sep 2000 01:23:06 -0400 (EDT) Received: (from david@localhost) by freebsd.mindspring.com (8.11.0/8.11.0) id e8N5NEZ54000 for questions@FreeBSD.ORG; Sat, 23 Sep 2000 00:23:14 -0500 (CDT) (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 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