Using tee to create a log

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Kevin Buettner
日付:  
題目: Using tee to create a log
On Jul 26, 1:29pm, Alan Dayley wrote:

> So, is there a version of tee that captures stderr too? Hmm... A
> programming project...


Just do

    somecommand 2>&1 | tee logfile


Kevin