“disown”命令在 bash 中有效,但在 ksh 中无效。
如果我在 ksh 中启动了一个进程,我怎么能“否认”它,所以我可以退出我的 shell。(我知道nohup,但是这个过程已经开始了!)
ksh93 支持 disown 命令。此外,某些版本的 nohup 允许您使用 -p 选项而不是命令来指定进程 ID。
在 ksh 中,只运行不带 -h 选项的 disown。而已。
从ksh(1)
手册:
disown [ job... ] Causes the shell not to send a HUP signal to each given job, or all active jobs if job is omitted, when a login shell terminates.