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
Powered by Drupal