is there any way to know the pid of a launched program?

前端 未结 2 1831
名媛妹妹
名媛妹妹 2021-01-02 06:44

if I launch a bash script as a child, I can pass its own pid to the parent by using $$.

Is there any way to find the pid of a program that I launch from a script in

2条回答
提交回复
热议问题