Derrick 'dman' Hudson wrote:
> Pigeon wrote:
> | ps a -f | grep $PPID | grep -v root | cut -f 1 -d ' '
> | gives the username of the user who su'd.
>
> Beautiful! That's exactly what I wanted.
Very nice. Just some tuning. The 'ps -p $PPID' option will trip out
some of those processes.
ps h -p $PPID -f | awk '{print$1}'
Bob
Attachment:
pgp3YXVWo05KW.pgp
Description: PGP signature