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
More information about formatting options
Powered by Drupal and Drupal Theme created with Artisteer