home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume5 / pt.bsd / README < prev   
Encoding:
Text File  |  1989-02-03  |  2.0 KB  |  55 lines

  1.             Ptree Version 1.0  05/24/88
  2.  
  3. Introduction:
  4.  
  5.     ptree is  a backend filter  for  BSD  'ps' command.  It  reads the
  6.     output from  ps and produces  process tree  graph on the  standard
  7.     output with each process indented under its  parent.  This program
  8.     was inspired by  the 'utree' program  for  system V  from  Brandon
  9.     Allbery.  The following is an example:
  10.  
  11.       $ ptree ag | grep -v getty
  12.       USER STAT TTY  TIME COMMAND
  13.        lew I    i14  0:09 -Tcsh (Tcsh)
  14.        lew I    i14  0:31 |  emacs
  15.        lew I    p0   0:00 |  |  /usr/local/emacs/etc/loadst -n 60
  16.      alice I    i17  0:03 -csh (csh)
  17.        lew I    i18  0:08 -Tcsh (Tcsh)
  18.        lew S    i18  0:09 |  screen -e?]
  19.        lew I    p1   0:06 |  |  -bin/Tcsh (Tcsh)
  20.        lew S    p2   0:07 |  |  -bin/Tcsh (Tcsh)
  21.     domino S    i26  0:05 -csh (csh)
  22.     domino S    i26  0:00 |  lprint -f /usr/local/bin/lprint -n BigBucks
  23.     domino S    i26  0:00 |  |  dcat -d 3 -b 128
  24.        mxt I    i27  0:02 -csh (csh)
  25.        mxt I    i27  0:03 |  mail -f
  26.        mxt I    i27  0:00 |  |  sh -c /usr/ucb/more
  27.        mxt I    i27  0:00 |  |  |  /usr/ucb/more
  28.  
  29.     This is not 'yet another setuid program'.  You dont have to be the
  30.     root to use it.  This is the main reason  to write it as a filter.
  31.     May be BSD can incorporate this into real 'ps' on future release.
  32.  
  33.     Kill is a script which uses 'sf' (shell form in comp.sources.unix)
  34.     to allow one to send signals to processes by context.
  35.  
  36. Manual:
  37.  
  38.     There is no man page to it, type: 'pt H' will give you simple help
  39.     message.  If you know how 'ps' works then you  dont need a manual,
  40.     if you dont, this might not be useful to you.
  41.  
  42. Build:
  43.  
  44.     cc -o ptree ptree.c
  45.     ln ptree pt
  46.  
  47. Copyright:
  48.  
  49.     No copyright, complete in public domain. Do whatever you like with
  50.     it.  If you can make money from it, great for you.
  51.  
  52. ----------------------------------------------------------------------
  53. Paul Lew            {olivea,harvard,decvax}!gsg!lew    (UUCP)
  54. General Systems Group, 5 Manor Parkway, Salem, NH 03079    (603) 893-1000
  55.