How does a Linux/Unix Bash script know its own PID?

前端 未结 6 1248
[愿得一人]
[愿得一人] 2021-01-29 23:10

I have a script in Bash called Script.sh, and it needs to know its own PID (i.e. I need to get PID inside the Script.sh )

Any idea how to do this ?

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