Using tee to create a log

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Alan Dayley
日付:  
題目: 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
\-------------------------------------------