This commit is contained in:
Doncho N. Gunchev 2022-03-21 12:30:30 +02:00
parent 29ee9ee1c8
commit aaf0439e28
Signed by: dgunchev
GPG key ID: D30FD19F37E002A9
2 changed files with 20 additions and 1 deletions

View file

@ -12,7 +12,8 @@ fi
SUM=0
OVERALL=0
for DIR in `find /proc/ -maxdepth 1 -type d -regex "^/proc/[0-9]+"`
#for DIR in `find /proc/ -maxdepth 1 -type d -regex "^/proc/[0-9]+"`
for DIR in /proc/[0-9]*
do
PID=`echo $DIR | cut -d / -f 3`
PROGNAME=`ps -p $PID -o comm --no-headers`