How to Get the PID of a Shell Script – Linux Hint
To get the PID of a Shell Script there are three ways that are: Using $$ variable Using ps Command and using ps aux with awk command