i want the process name that started the line PID of all active lines, etc.
in other words, the PPID name of active line PID
as example, my ssh session is pts/0
the line has PID 1220, and a PPID 1216, ps 1216 is a SSHD fork "sshd: root@pts/0"
1216 PPID is /usr/sbin/sshd, and its PPID is 1 (init)
but, i yank active lines with
Code:
who -a | awk '$2 == "+" {print $7;}'
i am looking for a more elegant way, etc.