Skip to content

Instantly share code, notes, and snippets.

@int0x33
Created March 12, 2019 22:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save int0x33/bf6e67ce279cbc63d83d820294e055f2 to your computer and use it in GitHub Desktop.
Save int0x33/bf6e67ce279cbc63d83d820294e055f2 to your computer and use it in GitHub Desktop.
IFS=$'\n'
old_process=$(ps -eo command)
while true; do
new_process=$(ps -eo command)
diff <(echo "$old_process") <(echo "$new_process") |grep [\<\>]
sleep 1
old_process=$new_process
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment