在FiSH(友好交互式外壳)中,我可以在后台(something &
)开始一个过程。但是,如果我尝试检索进程(PID=$!
)的进程ID,则会从fish中得到一个错误:
fish: Unknown command “PID=$!”. Did you mean “set PID $!”? For information on assigning values to variables, see the
help section on the set command by typing “help set”.
PID=$!: command not found
如何获取后台进程的PID?
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句