From owner-freebsd-questions Tue May 30 13:13: 7 2000 Delivered-To: freebsd-questions@freebsd.org Received: from bubba.whistle.com (bubba.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id EAF6037B72D for ; Tue, 30 May 2000 13:13:01 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.3/8.9.2) id NAA33987 for freebsd-questions@freebsd.org; Tue, 30 May 2000 13:13:00 -0700 (PDT) From: Archie Cobbs Message-Id: <200005302013.NAA33987@bubba.whistle.com> Subject: basic sh(1) question To: freebsd-questions@freebsd.org Date: Tue, 30 May 2000 13:13:00 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In sh(1), how do I make both the stdout and stderr output of a command get piped together into another command? For output to a file, you do this: $ cmd1 >file 2>&1 So you'd think the same thing would work for output to another command, but it doesn't: $ cmd1 |cmd2 2>&1 Thanks, -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message