Skip to content

Instantly share code, notes, and snippets.

@akkerman
Last active December 21, 2015 07:58
Show Gist options
  • Save akkerman/6274622 to your computer and use it in GitHub Desktop.
Save akkerman/6274622 to your computer and use it in GitHub Desktop.
check if a certain program is running on linux without it returning the grep command itself e.g. `psgrep apache`
ps -ef | grep -v grep | grep -i --color=auto $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment