Originally posted as a Categorized Question.
In reply to How do i obtain the PID of a program already running. by Adityad