script output to log

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Daniel Montagnese
日付:  
題目: script output to log
The following two lines can be placed near the top of the script:

exec 1>log_file
exec 2>&1


############

All stdout will go to the log and all stderr will go to stdout which
is already going to the log.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com