Using tee to create a log

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Alan Dayley
Date:  
Subject: Using tee to create a log
At 11:56 AM 7/26/01 -0700, you wrote:
>If foo writes to stderr as well as stdout, some lines won't get captured

to the file (you'll see them scrolling by). If that happens and you want
to capture those lines too, try this:
> foo &>logfile


This one did it. I had tried ">" but it did not capture anything. I did
not know about the "&>" to capture stderr. Evidently this program spits
everything to stderr.

Thanks.

Alan

-
/------------------------------------------
|Alan Dayley             www.adtron.com
|Software Engineer       602-735-0300 x331
|
|
|Adtron Corporation         
|3710 E. University Drive, Suite 5
|Phoenix, AZ  85034
\-------------------------------------------