Skip to content

Instantly share code, notes, and snippets.

@joeybaker
Created September 24, 2014 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joeybaker/2c876eb329423292157a to your computer and use it in GitHub Desktop.
Save joeybaker/2c876eb329423292157a to your computer and use it in GitHub Desktop.
see if any processes are running bash using dtrace
dtrace -n 'proc:::exec-success/basename(execname)=="bash"/{printf("%d executed %s\n", ppid, execname);}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment