*BSD News Article 89933


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!howland.erols.net!newsxfer.itd.umich.edu!uunet!in1.uu.net!207.67.253.7!atmnet.net!news.lightside.com!dcs78.dcs-chico.com!user
From: fred@lightside.net (Fred Condo)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: pstree
Date: Sun, 23 Feb 1997 10:11:51 -0800
Organization: Lightside, Inc. - Internet Access
Lines: 48
Message-ID: <fred-2302971011510001@dcs78.dcs-chico.com>
NNTP-Posting-Host: dcs78.dcs-chico.com
Mime-Version: 1.0
Content-Type: text/plain;charset=US-ASCII
Content-Transfer-Encoding: 7bit
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:35970

Is there a BSD version of pstree? Pstree creates a tree diagram of
processes by parsing the output of ps -ef (on System V):

-+- 00001 root /etc/init 
 |--- 00118 root /usr/lib/lpd 
 |--- 00011 root /etc/fidd 
 |--- 00116 root /usr/lib/errdemon 
 |--- 00129 root /etc/cron 
 |--- 00126 root /etc/portmap 
 |--- 00132 root /etc/in.routed 
 |-+- 00136 root /usr/local/etc/inetd -l -a 
 | |-+- 20702 root in.ftpd -l cabc0ecd.1061 
 | | \--- 20703 root <defunct>
 | |-+- 01181 root in.ftpd -l d0c2c0f6.1338 
 | | \--- 01187 root <defunct>
 | |--- 26913 root in.ftpd -l 80d20a0e.58863 
 | |-+- 16541 root in.ftpd -l cf434383.1074 
 | | \--- 16548 root <defunct>
 | |--- 13333 root in.ftpd -l c09cb902.4888 
 | |--- 13341 root in.ftpd -l c09cb902.1241 
 | |-+- 13348 root in.ftpd -l c09cb902.1406 
 | | \--- 13349 root <defunct>
 | \-+- 26968 root in.telnetd ce63754e.2088 
 |   \-+- 26969 fred -bash 
 |     \--- 26985 fred pstree 
 |--- 00165 root /etc/getty console co_9600 
 |--- 00139 root /usr/local/etc/syslogd 
 |--- 00147 root /etc/named 
 |-+- 00150 root /usr/local/etc/radiusd.dbm 
 | \--- 00151 root /usr/local/etc/radiusd.dbm 
 |-+- 00154 root /usr/local/etc/httpd/httpd 
 | |--- 26928 httpd /usr/local/etc/httpd/httpd 
 | |--- 26865 httpd /usr/local/etc/httpd/httpd 
 | |--- 26866 httpd /usr/local/etc/httpd/httpd 
 | |--- 26681 httpd /usr/local/etc/httpd/httpd 
 | |--- 26710 httpd /usr/local/etc/httpd/httpd 
 | |--- 26929 httpd /usr/local/etc/httpd/httpd 
 | |--- 26757 httpd /usr/local/etc/httpd/httpd 
 | |--- 26930 httpd /usr/local/etc/httpd/httpd 
 | |--- 26932 httpd /usr/local/etc/httpd/httpd 
 | \--- 26838 httpd /usr/local/etc/httpd/httpd 
 |--- 00167 root /etc/getty tty0 at_9600 
 \--- 26831 root /usr/lib/sendmail -bd -q30m
-- 
http://www.lightside.net/~fred/ + net access + http://www.lightside.net/
"Attempts to control the use of encryption technology are wrong in
principle, unworkable in practice, and damaging to the long term economic
value of the information networks." - UK Labour Party