-
-
Save zavke/7e2284acd3c2971776ce2adf23a1fde0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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