【问题标题】:How to save "mtr --report-wide" output to textfile?如何将“mtr --report-wide”输出保存到文本文件?
【发布时间】:2014-12-03 09:02:07
【问题描述】:

我无法将“mtr --report-wide”的输出保存到文本文件。可能是由于两个选项输出信息的方式不同。我知道我可以使用“--raw”参数,但我想避免这种情况。

有人有解决办法吗?

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 &"

【问题讨论】:

    标签: linux debian nohup traceroute


    【解决方案1】:

    进程永不停止

    恰恰相反 - 由于SIGTTOU 信号,进程立即停止,因此永远不会终止。

    解决方案?

    只需重定向STDERR 也可以使用… >&output& 而不是… >output&

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-13
      • 2021-10-16
      • 2014-09-21
      相关资源
      最近更新 更多