bash 的 redirect - Linux
By Belly
at 2010-01-31T09:46
at 2010-01-31T09:46
Table of Contents
請問
我有一個 bash script
我想把所有的 standard output 的 message 導到 一個 logfile 裡
我只知道在所有有 output 的地方 加上 >logfile
這樣感覺很不方便
請問 可以怎麼做比較簡單?
====================================
另外想問
如果我想同時 保持 standard output 的 message
並且同時把 message 存到 logfile 裡
請問應該怎麼做??
感謝
--
我有一個 bash script
我想把所有的 standard output 的 message 導到 一個 logfile 裡
我只知道在所有有 output 的地方 加上 >logfile
這樣感覺很不方便
請問 可以怎麼做比較簡單?
====================================
另外想問
如果我想同時 保持 standard output 的 message
並且同時把 message 存到 logfile 裡
請問應該怎麼做??
感謝
--
Tags:
Linux
All Comments
By Megan
at 2010-02-02T14:54
at 2010-02-02T14:54
By Ingrid
at 2010-02-04T19:00
at 2010-02-04T19:00
Related Posts
ubuntu ssh的問題
By Brianna
at 2010-01-31T02:53
at 2010-01-31T02:53
debian不吃deb包
By Catherine
at 2010-01-31T01:23
at 2010-01-31T01:23
Ubuntu 中文字的問題
By Victoria
at 2010-01-30T23:38
at 2010-01-30T23:38
檢查DNS的設定是否正確?
By Linda
at 2010-01-30T15:15
at 2010-01-30T15:15
ubuntu ssh的問題
By Kama
at 2010-01-30T13:33
at 2010-01-30T13:33