shell script how to get current process ID code example
Example 1: get process id php
getmypid ( ) : int
Example 2: how to get process id in linux
lsof -i tcp:3000
kill -9 pId
getmypid ( ) : int
lsof -i tcp:3000
kill -9 pId