From owner-freebsd-questions Fri Oct 18 12:59:45 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 36C4437B404 for ; Fri, 18 Oct 2002 12:59:44 -0700 (PDT) Received: from sage-one.net (adsl-65-71-135-137.dsl.crchtx.swbell.net [65.71.135.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8DFB43E88 for ; Fri, 18 Oct 2002 12:59:42 -0700 (PDT) (envelope-from jackstone@sage-one.net) Received: from sagea (sagea [192.168.0.3]) by sage-one.net (8.11.6/8.11.6) with SMTP id g9IJsHf93951; Fri, 18 Oct 2002 14:54:17 -0500 (CDT) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20021018145416.01430940@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Fri, 18 Oct 2002 14:54:16 -0500 To: "David Smithson" , From: "Jack L. Stone" Subject: Re: question: sending to stdout AND file In-Reply-To: <014101c276dd$4681b1f0$0801a8c0@customfilmeffects.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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 At 12:33 PM 10.18.2002 -0700, David Smithson wrote: >Hi all. > >This question is not specifically FreeBSD related. > >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. > >Thanks for your time. > >-- >David Smithson - Systems Administrator >Custom Film Effects (http://www.customfilmeffects.com) > How about: # script infile # captures to a file named "infile" ...then run your script and view output # exit # more infile # gives the same output..... Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message