2>&1輸出導向 - Linux

Table of Contents

※ 引述《godman362 (Shizuru)》之銘言:
: 想請問一下
: 如果我利用 2>&1 將錯誤訊息送至某個文件
: 但是我不打算讓文件的內容清空在覆寫上去
: 就是每次不同的error都會被紀錄起來,請問該如何處理?

<command> 2>&1 >> log # >> 是 append

如果你想要順便看見執行結果的話

<command> 2>&1 |tee log

--


我想你會衰成這樣都是我害的
---- Tizzy Mac

緊張的麥金塔?這是誰(._.?)

--

All Comments

Edward Lewis avatarEdward Lewis2008-11-23
謝謝