2>&1輸出導向 - Linux

By Dora
at 2008-11-20T10:15
at 2008-11-20T10:15
Table of Contents
※ 引述《godman362 (Shizuru)》之銘言:
: 想請問一下
: 如果我利用 2>&1 將錯誤訊息送至某個文件
: 但是我不打算讓文件的內容清空在覆寫上去
: 就是每次不同的error都會被紀錄起來,請問該如何處理?
<command> 2>&1 >> log # >> 是 append
如果你想要順便看見執行結果的話
<command> 2>&1 |tee log
--
我想你會衰成這樣都是我害的
---- Tizzy Mac
緊張的麥金塔?這是誰(._.?)
--
: 想請問一下
: 如果我利用 2>&1 將錯誤訊息送至某個文件
: 但是我不打算讓文件的內容清空在覆寫上去
: 就是每次不同的error都會被紀錄起來,請問該如何處理?
<command> 2>&1 >> log # >> 是 append
如果你想要順便看見執行結果的話
<command> 2>&1 |tee log
--
我想你會衰成這樣都是我害的
---- Tizzy Mac
緊張的麥金塔?這是誰(._.?)
--
Tags:
Linux
All Comments

By Edward Lewis
at 2008-11-23T04:56
at 2008-11-23T04:56
Related Posts
2>&1輸出導向

By Genevieve
at 2008-11-20T07:55
at 2008-11-20T07:55
無法找到網卡

By Ina
at 2008-11-20T01:03
at 2008-11-20T01:03
這樣有需要挑網卡嗎?

By Hedwig
at 2008-11-19T22:49
at 2008-11-19T22:49
請 問ubunntu 8.10下如何使用logitech webcam

By Noah
at 2008-11-19T21:51
at 2008-11-19T21:51
ubuntu灌在ASUS W7S

By Oliver
at 2008-11-19T18:22
at 2008-11-19T18:22