Skip to content

Instantly share code, notes, and snippets.

@aroben
Created April 5, 2013 12:38
Show Gist options
  • Save aroben/5318990 to your computer and use it in GitHub Desktop.
Save aroben/5318990 to your computer and use it in GitHub Desktop.
Script to list all processes as they run
while true; do ps aux; done | awk '!/ps aux$/ { if ($2 in pids) { next } else { pids[$2] = 1; print } }'
@aroben
Copy link
Author

aroben commented Apr 5, 2013

@bdash pointed out that sudo execsnoop -a is better in pretty much every way.

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