nohup command > logfile.txt &
我如何找出进程ID?我希望能够在文件中编写进程ID,稍后读取并以编程方式终止进程.
nohup command > logfile.txt & echo $! > /var/run/command.pid