home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume32 / tbtree / part01 / README next >
Text File  |  1992-10-15  |  2KB  |  58 lines

  1. AN ORIGINAL POSTING was in response to a recent request in this group
  2. for a "tree" program for Unix; a system manager wanted to get
  3. a visual idea of where things were on his/her new system.
  4.                                    
  5. [last minute note: Thanks for sending me your updates!  When I get a chance,
  6.  I'll try to integrate them and repost them. - tb]
  7.  
  8.  
  9. CHANGES IN THIS POSTING:
  10.  
  11.     1) In the case of a symbolic link that points to a file that
  12.        does not exist (e.g., you create a linkfile "foo" that points
  13.        to a file named "foobar", but then delete "foobar", leaving
  14.        "foo"):
  15.  
  16.        ORIGINAL VERSION:
  17.             "Error on stat." would appear on standard error.
  18.  
  19.        THIS VERSION:
  20.             Nothing happens; tbtree recognizes the "Not There" error.
  21.  
  22.     2) In the case of tbtree being invoked on, or descending into,
  23.        a directory for which you have no "search" (or "execute")
  24.        permissions.
  25.  
  26.        ORIGINAL VERSION:
  27.             "Error on stat." would appear on standard error.
  28.             The directory is skipped.
  29.  
  30.        THIS VERSION:
  31.             "Error running stat() on xyzzy: No permission" (or an
  32.             equivalent) would appear on standard error, as the
  33.             system's "Print Error" ("perror()") function is used.
  34.             (And where "xyzzy" is the directory's path.)
  35.  
  36.             The directory is skipped.
  37.  
  38.     3) As a result, errors in general for the stat() and lstat()
  39.        calls are better reported.
  40.  
  41.     4) EXTRA FEATURE:  If there is(are) a directory name which usually
  42.        you can't stand descending into (say you have a whole extra hard
  43.        disk mounted as a subdirectory in more than one place), you
  44.        can "uncomment" a small block herein where I show how to hard-
  45.        code a "prune".  Yes, it should be a command line option; but
  46.        think about it ... if there is such a name on your system (there
  47.        are three on mine) then you will know about it when you install
  48.        this.
  49.  
  50.        Do like I did: compile once as "tbtree", then install the prune
  51.        and call it "tbtree_prune".  Or make it whatever way you like.
  52.  
  53. This has run on Sun machines.  As I comment within, try it on your
  54. Unix; you have nothing to lose, and it looks pretty portable.
  55.  
  56. If you improve it, please send me a copy.
  57. tombaker@world.std.com || tabaker@aol.com || BIX as tombaker
  58.