Skip to content

Commit aa7f998

Browse files
committed
new
1 parent 6826016 commit aa7f998

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

procmon.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
IFS=$'\n'
3+
old_process=$(ps aux --forest | grep -v "ps aux --forest" | grep -v "sleep 1" | grep -v $0)
4+
while true; do
5+
new_process=$(ps aux --forest | grep -v "ps aux --forest" | grep -v "sleep 1" | grep -v $0)
6+
diff <(echo "$old_process") <(echo "$new_process") | grep [\<\>]
7+
sleep 1
8+
old_process=$new_process
9+
done

0 commit comments

Comments
 (0)