Issue
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 ?
Solution
The variable $$
contains the PID.
Answered By - Paul Tomblin
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 ?
The variable $$
contains the PID.