I want to get the PID for a process started in shell script. <br><br>Example: I start a program named ´testprog´. I want to save the PID for that process in a file so I can kill that process later. Because I want to start several instances of ´testprog´ but not kill all of them at the same time, I can't grep the process names and extract PID's for them in that way.