home *** CD-ROM | disk | FTP | other *** search
- Ptree Version 1.0 05/24/88
-
- Introduction:
-
- ptree is a backend filter for BSD 'ps' command. It reads the
- output from ps and produces process tree graph on the standard
- output with each process indented under its parent. This program
- was inspired by the 'utree' program for system V from Brandon
- Allbery. The following is an example:
-
- $ ptree ag | grep -v getty
- USER STAT TTY TIME COMMAND
- lew I i14 0:09 -Tcsh (Tcsh)
- lew I i14 0:31 | emacs
- lew I p0 0:00 | | /usr/local/emacs/etc/loadst -n 60
- alice I i17 0:03 -csh (csh)
- lew I i18 0:08 -Tcsh (Tcsh)
- lew S i18 0:09 | screen -e?]
- lew I p1 0:06 | | -bin/Tcsh (Tcsh)
- lew S p2 0:07 | | -bin/Tcsh (Tcsh)
- domino S i26 0:05 -csh (csh)
- domino S i26 0:00 | lprint -f /usr/local/bin/lprint -n BigBucks
- domino S i26 0:00 | | dcat -d 3 -b 128
- mxt I i27 0:02 -csh (csh)
- mxt I i27 0:03 | mail -f
- mxt I i27 0:00 | | sh -c /usr/ucb/more
- mxt I i27 0:00 | | | /usr/ucb/more
-
- This is not 'yet another setuid program'. You dont have to be the
- root to use it. This is the main reason to write it as a filter.
- May be BSD can incorporate this into real 'ps' on future release.
-
- Kill is a script which uses 'sf' (shell form in comp.sources.unix)
- to allow one to send signals to processes by context.
-
- Manual:
-
- There is no man page to it, type: 'pt H' will give you simple help
- message. If you know how 'ps' works then you dont need a manual,
- if you dont, this might not be useful to you.
-
- Build:
-
- cc -o ptree ptree.c
- ln ptree pt
-
- Copyright:
-
- No copyright, complete in public domain. Do whatever you like with
- it. If you can make money from it, great for you.
-
- ----------------------------------------------------------------------
- Paul Lew {olivea,harvard,decvax}!gsg!lew (UUCP)
- General Systems Group, 5 Manor Parkway, Salem, NH 03079 (603) 893-1000
-