如果我从 shell 运行 emacs:
$ emacs foo &
Run Code Online (Sandbox Code Playgroud)
然后杀死那个外壳,emacs 死了。
如何运行命令使其在 shell 死机时不会死机?
我找到了对 nohup 的引用,但这似乎没有帮助:
$ nohup emacs foo &
Run Code Online (Sandbox Code Playgroud)
当 shell 死亡时,仍然会杀死 emacs。
我通过 ssh 在服务器上启动了一个测试文件系统调整大小,但完全忘记在screen会话中这样做。现在它正在运行,我的笔记本电脑的互联网速度很慢。如果我断开 ssh 连接,有什么办法可以让它继续运行吗?
它也输出进度,但我不必关心得到它。
操作系统:RHEL7.2 等效 (SL7)。
将其链接为解决方案可能会更好:https : //stackoverflow.com/questions/625409/how-do-i-put-an-already-running-process-under-nohup
不知道如何链接它而不是建议的链接,所以请随意添加并标记为重复