Danny's Lab

Engineering the World

Check to see if a process is running

Published on: Oct 24, 2008
Reading time: 12 seconds

To see if a process is running, you can use the kill command:

kill -0 <pid>

You can then look at the return result to see if it was running. This is a little better than the typical “ps|grep” method.