Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. old_process=$(ps -eo command)
  4.  
  5. while true; do
  6. new_process=$(ps -eo command)
  7. diff <(echo "$old_process") <(echo "$new_process") | grep "[\>\<]" | grep -v "command" | grep -v "procmon"
  8. old_process=$new_process
  9. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement