Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux “如何保存”;mtr——报告范围;输出到文本文件?_Linux_Debian_Nohup_Traceroute - Fatal编程技术网

Linux “如何保存”;mtr——报告范围;输出到文本文件?

Linux “如何保存”;mtr——报告范围;输出到文本文件?,linux,debian,nohup,traceroute,Linux,Debian,Nohup,Traceroute,我在将“mtr--报告范围”的输出保存到文本文件时遇到问题。可能是因为两个选项输出信息的方式不同。我知道我可以使用“-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 &" 不工作(过程

我在将“mtr--报告范围”的输出保存到文本文件时遇到问题。可能是因为两个选项输出信息的方式不同。我知道我可以使用“-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 &"
不工作(过程从不停止):

过程永不停止

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

解决方案

只需使用
..>&output&
而不是
..>output&
重定向
STDERR

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