a guest Dec 11th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- #! /bin/bash
- lista=$(ls /proc | grep -E "^[0-9]" | sort -n)
- #echo $lista
- for p in $lista
- if [ -e "/proc/$p" ]
- nazwa=$(sed '1!d' /proc/$p/status | cut -d: -f2)
- ppid=$(sed '6!d' /proc/$p/status | cut -d: -f2)
- uid=$(sed '8!d' /proc/$p/status | cut -f2)
- uid=$(id $uid | cut -d' ' -f1 | cut -d= -f2)
- echo "$p $ppid $uid $nazwa"
RAW Paste Data