我开始了一个大的操作,但我没有启动屏幕会话,所以我不能在不取消操作的情况下断开连接.
有没有办法注入屏幕,以便操作继续并将其输出发送到屏幕会话,我可以安全地断开我的ssh会话?
解决方法
浏览完你的“号码”后链接我实际上在伯爵的serverfault上找到了
this answer:
However,for your actual problem,there’s another thing you could try: after having
launched your job from the terminal,background it by typing ctrl-z and then bg.
After that,detach the job from it’s parent shell – in bash: disown -h %. After
that,you can safely close the terminal and the job will continue running.
而这一点来自Rob Wells的同一个问题:
$screen -S my_process $07001 $(pgrep my_process) /redraw