Created
April 5, 2013 12:38
-
-
Save aroben/5318990 to your computer and use it in GitHub Desktop.
Script to list all processes as they run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true; do ps aux; done | awk '!/ps aux$/ { if ($2 in pids) { next } else { pids[$2] = 1; print } }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@bdash pointed out that
sudo execsnoop -a
is better in pretty much every way.