Well, thanks for the example but that's exactly what I don't want to do. The script you wrote kills <i>all</i> processes named <i>processname</i> owned by <i>processowner</i>.<br><br>I want to get the actual pid value for the started process.<br><br> /Octopus
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.