本文共 347 字,大约阅读时间需要 1 分钟。
bash 获取进程id
How to get the running ’ parent process’ ID in Bash?
如何在Bash中获取正在运行的 “父进程” ID?
In Bash, you can get the parent process’s pid from the variable PPID.
在Bash中 ,您可以从变量PPID获取父进程的pid。
Note that in a (...)
subshell, the $$
stores the subshell’s parent pid actually.
请注意,在(...)
子 , $$
实际上存储了该子的父 pid。
翻译自:
bash 获取进程id
转载地址:http://cplwd.baihongyu.com/