search

Home  >  Q&A  >  body text

用putty连接的Linux,关闭putty后如何查看正在运行的进程的打印信息

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

黄舟黄舟2868 days ago762

reply all(2)I'll reply

  • 高洛峰

    高洛峰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.

    reply
    0
  • 怪我咯

    怪我咯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

    reply
    0
  • Cancelreply