I'm in the middle of a short script that's sole purpose is to launch a program using system() (lets call it program_a), run through a loop, and then kill the program_a it started up.
The problem is, it will not be the only instance of the Program_A running, so I need to catch the pid assigned to it on launch.