Skip to content

Instantly share code, notes, and snippets.

@uhhuhyeah
Created October 11, 2010 15:51
Show Gist options
  • Save uhhuhyeah/620749 to your computer and use it in GitHub Desktop.
Save uhhuhyeah/620749 to your computer and use it in GitHub Desktop.
ps -ef | grep " process or pid " | grep -v grep
@uhhuhyeah
Copy link
Author

Check if a process is running by it's process name or id, and filter out itself (the command) from the results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment