From owner-freebsd-questions Fri Oct 18 12:49:11 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 26D4A37B401 for ; Fri, 18 Oct 2002 12:49:10 -0700 (PDT) Received: from rotini.customfilmeffects.com (rotini.customfilmeffects.com [66.134.82.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id A166A43ED8 for ; Fri, 18 Oct 2002 12:49:09 -0700 (PDT) (envelope-from david@customfilmeffects.com) Received: from ethel (ethel.customfilmeffects.com [192.168.1.8]) by rotini.customfilmeffects.com (8.11.6/8.11.6) with SMTP id g9IJXVA32663; Fri, 18 Oct 2002 12:33:31 -0700 Message-ID: <016a01c276df$55966760$0801a8c0@customfilmeffects.com> From: "David Smithson" To: "Dirk-Willem van Gulik" Cc: References: <20021018213449.F55920-100000@foem.leiden.webweaving.org> Subject: Re: question: sending to stdout AND file Date: Fri, 18 Oct 2002 12:48:30 -0700 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 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 The tee command does the job. Thanks! ----- Original Message ----- From: "Dirk-Willem van Gulik" To: "David Smithson" Cc: Sent: Friday, October 18, 2002 12:35 PM Subject: Re: question: sending to stdout AND file > > > How do I redirect output to a file *and* stdout simultaneously. My > > particular want is to view the output of a script while also logging the > > output to a text file. > > Check out tee(1), > > man tee > > Dw. > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message