On Sat, Jun 28, 2003 at 12:31:55AM -0600, Bob Proulx wrote: > 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}'
Ah, much neater! Thanks. (I do have a tendency to be a grep-pipeline junkie :-) ) -- Pigeon Be kind to pigeons Get my GPG key here: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x21C61F7F
pgp00000.pgp
Description: PGP signature