How-To find process ID

To find the process ID from a running process use this command:

echo `ps aux | awk '/pst/ && \!/awk/ {print $2}'`

Replace "pst" with the process name you are looking for