【发布时间】:2017-03-18 04:41:19
【问题描述】:
我在我的项目中使用 nohup。 是否有可能在使用 nohup 的同时将程序的输出到控制台和文件?
用“tee”我没有成功:
nohup ./programm 2>&1 | tee Output.txt
感谢帮助
【问题讨论】:
标签: linux console output nohup
我在我的项目中使用 nohup。 是否有可能在使用 nohup 的同时将程序的输出到控制台和文件?
用“tee”我没有成功:
nohup ./programm 2>&1 | tee Output.txt
感谢帮助
【问题讨论】:
标签: linux console output nohup
尝试运行并将输出记录到文件中。
nohup ./program > Output.txt | tail -F Output.txt &
如果你想在后台运行它:
nohup ./program > Output.txt &
【讨论】: