我正在VirtualBox中使用CentOS 7.6和bash shell。
我在我的站点中遇到了一个名为MotherScript的脚本,它具有以下语句:
nohup ksh MyScript &
MotherScript和MyScript都有一个shebang行
#!/bin/ksh
登录后,我只启动了MotherScript。
通常,在我以前的公司中,我使用以下语句:
nohup MyScript &
这两个语句之间在功能/奇怪/用途上是否有区别?
在MyScript内部,有一个sleep
命令,可以在while循环中重复睡眠1小时,持续7天。
但是,非常奇怪,我无法使用:]查看此睡眠过程。
ps -ef | grep sleep
因此,我无法终止睡眠过程。
[nohup ksh
玩把戏吗?
任何人都知道背后的原因吗?
谢谢。艾文
我正在VirtualBox中使用CentOS 7.6和bash shell。我在我的网站上遇到了一个名为MotherScript的脚本,该脚本具有以下语句:nohup ksh MyScript&MotherScript和MyScript都具有...
nohup ksh MyScript &