<分区>
我的问题与我在 SO here 上找到的问题相同, here和 here .但是,对我来说 nohup
不起作用。编译 screen
会出错,对于 disown,Control+Z 不会使进程“停止”。
我运行一个数据生成二进制文件,它将数据写入一个文件,并在屏幕上打印状态消息 (stdout)。我尝试了以下
nohup ./sp2b <options for sp2b> > output &
当我注销终端并重新登录时,进程已经终止。其实我也想计时,所以想做
nohup time ./sp2b <options for sp2b> > output &
为什么 nohup 在我的情况下不起作用?