使用putty连接远程的linux,用命令行启动了一个python任务,这个任务需要跑几个小时,程序中有根据进度打印信息的代码。现在如果退出putty,下次再进入的时候如何重新找到这个进程并重新获取打印信息呢?小弟是linux新手,期待回复!
高洛峰2017-04-17 14:51:56
You can use tmux, there are many detailed introductions online. Just look it up and you’ll know, so I won’t go into details.
怪我咯2017-04-17 14:51:56
I don’t understand the meaning of the question.
If the running information is printed by the python file itself, then the subject can directly write the running information into a log file in the python file.
If it is system printing, you can use the redirection method to redirect the information output to the screen to a file.
The questioner can learn about Linux system redirection