question: sending to stdout AND file

2002-10-18 Thread David Smithson
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

Re: question: sending to stdout AND file

2002-10-18 Thread David Smithson
The tee command does the job. Thanks! - Original Message - From: Dirk-Willem van Gulik [EMAIL PROTECTED] To: David Smithson [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, October 18, 2002 12:35 PM Subject: Re: question: sending to stdout AND file How do I redirect output

Re: question: sending to stdout AND file

2002-10-18 Thread Kliment Andreev
One way is to use the tee command, e.g.: [johnnyb@zappa johnnyb]$ ls | tee listing.txt will send the results of the ls command to STDOUT and also to the file listing.txt. # man script To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of

Re: question: sending to stdout AND file

2002-10-18 Thread Larry Rosenman
On Fri, 2002-10-18 at 14:37, John Bleichert wrote: On Fri, 18 Oct 2002, David Smithson wrote: Date: Fri, 18 Oct 2002 12:33:46 -0700 From: David Smithson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: question: sending to stdout AND file Hi all. This question