用putty连接的Linux,关闭putty后如何查看正在运行的进程的打印信息
黄舟
黄舟 2017-04-17 14:49:56
0
2
723

使用putty连接远程的linux,用命令行启动了一个python任务,这个任务需要跑几个小时,程序中有根据进度打印信息的代码。现在如果退出putty,下次再进入的时候如何重新找到这个进程并重新获取打印信息呢?小弟是linux新手,期待回复!

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
小葫芦

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.

刘奇

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template