2014-12-03 142 views
1

我遇到麻煩,將「mtr --report-wide」的輸出保存到文本文件中。可能由於兩種選項輸出信息的方式不同。我知道我可以使用「--raw」的說法,但我想避免這種情況。如何將「mtr --report-wide」輸出保存爲文本文件?

有沒有人有解決方案?

Linux版本的:

Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 GNU/Linux 

作品:

"nohup mtr --report destination --report-cycles=10 > output &" 

無效(進程從未停止):

"nohup mtr --report-wide destination --report-cycles=10 > output &" 

回答

0

過程永遠不會停止

恰恰相反 - 由於SIGTTOU信號,過程立即停止,因此永不終止。

解決方案?

使用… >&output&代替… >output&只是重新STDERR也。

相關問題