From owner-freebsd-questions Fri Dec 17 5:37: 7 1999 Delivered-To: freebsd-questions@freebsd.org Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id F0E1315711 for ; Fri, 17 Dec 1999 05:37:02 -0800 (PST) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 3.11 #1) id 11yxYz-000EzE-00; Fri, 17 Dec 1999 15:36:53 +0200 From: Sheldon Hearn To: Greg Pavelcak Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Reading Output of "command 2>&1 | mail ..." In-reply-to: Your message of "Fri, 17 Dec 1999 07:38:52 EST." <19991217073851.A27607@oitunix.oit.umass.edu> Date: Fri, 17 Dec 1999 15:36:53 +0200 Message-ID: <57611.945437813@axl.noc.iafrica.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 17 Dec 1999 07:38:52 EST, Greg Pavelcak wrote: > cvsup -1 -g -L 2 supfiles/checkout/all 2>&1 | mail -s "CVSup: Checkout Sources " gp > > It was taking longer than I expected, and I began to wonder if > there is a way for me to see this output in progress without > waiting for my mail. Yup, Use the tee(1) utility: cvsup -1 -g -L 2 supfiles/checkout/all 2>&1 | tee | \ mail -s "CVSup: Checkout Sources" gp The backslash simply continues the line. Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message