如何打开显示后台输出的终端 运行 python 脚本

how to open terminal that show output of background running python script

我是 linux 的新手,有一个问题,我想 运行 一个 python 远程 运行ning 脚本 linux服务器 ssh.because 我使用 ssh 并希望在关闭 ssh 连接后 运行 我使用 nohup command.My 问题是我想打开显示 [=21= 输出的新终端]ning python 后台代码

尝试使用屏幕。我想它正是你要找的。您可以 运行 屏幕会话中前台的作业,并在需要时重新附加到会话(不会丢失任何输出)。

有关更多详细信息,请参阅此答案:https://superuser.com/a/292442