Cyrille Lefevre wrote: > On Tue, Jun 11, 2002 at 05:15:17AM -0700, Juli Mallett wrote: ... > > would like to see done to ps(1) :) The most notable request was for a > > feature I've missed having in our ps(1) for a while, the ability to get a > > tree of processes printed so you can tell who is whose child, etc.
Yes, I still missed that one. Go for it. > how about this one ? > > 1 ? 0 \_ init > 2814 ttyp0 0 \_ sh > 2816 ttyp0 0 | \_ sh > 57423 ? 0 | \_ sleep > 2596 ? 0 \_ inetd > 24834 ? 0 | \_ rlogind > 24838 ttyp0 0 | | \_ ksh > 24912 ttyp0 0 | | \_ ksh > 57504 ? 0 | \_ telnetd > ^^^^^^^^^^^^^^^^^^^^^^ command tree > ^^^^^^^^^^^^^^^^^^^^ standard ps fields > taken from ast-open `ps -T'. Also nice (why no UID field ?) I use ps trees like these to quickly find out who is misusing what ;-) > for fun, how about a simple awk script like the one in attachment ;^) :) Hans Lambermont -- http://lambermont.webhop.org/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message