Maj watch
This commit is contained in:
parent
6bf45592af
commit
a35f537982
|
@ -236,6 +236,8 @@ $ ps -e -o etimes=,pid,cmd | sort -rn | awk '{if ($1!=0 && $3!~/\[.*\]/) print
|
|||
|
||||
- Watch :
|
||||
|
||||
Toutes les 5 secondes :
|
||||
|
||||
~~~{.bash}
|
||||
$ watch -d "ps -e -o etimes=,pid,cmd | sort -n | awk '{if (\$1==0 || \$3~/\[.*\]/) {} else print \$0 }'"
|
||||
$ watch -n 5 -d "ps -e -o etimes=,pid,cmd | sort -n | awk '{if (\$1==0 || \$2==$$ || \$3~/watch/ || \$3~/\[.*\]/) {} else print \$0 }'"
|
||||
~~~
|
Loading…
Reference in a new issue