home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / lsof_3.37 / scripts / 00README < prev    next >
Encoding:
Text File  |  1995-07-31  |  1.4 KB  |  44 lines

  1.  
  2.         Notes on Using the Scripts in This Subdirectory
  3.  
  4. The scripts in this subdirectory are examples of post-processing
  5. lsof field output.  They are written in AWK, Perl 4 (4.036), and
  6. Perl 5 (5.001e and 5.001m).  AWK scripts have a suffix of ``.awk'';
  7. Perl 4 or Perl 5 scripts have a ``.perl'' suffix; and Perl 5 scripts,
  8. ``.perl5''.
  9.  
  10. Supply AWK scripts to your AWK interpreter with its -f option.  Supply
  11. lsof field output via a pipe -- e.g.,
  12.  
  13.     lsof -F | awk -f list_fields.awk
  14.  
  15. The Perl scripts use the Unix command interpreter line feature to
  16. specify the location of Perl -- i.e., the first line begins with
  17. ``#!'' and the path to the Perl interpreter follows.  If your system
  18. supports the command interpreter feature, but your Perl interpreters
  19. have different paths to them, just change the interpreter lines in
  20. the scripts.  These scripts assume:
  21.  
  22.     Path to:    Is:
  23.     =======        ==
  24.  
  25.     Perl 4        /usr/local/bin/perl
  26.  
  27.     Perl 5        /usr/local/bin/perl5
  28.  
  29. If your system doesn't support the command interpreter feature,
  30. you'll have to supply the scripts to your Perl interpreter on its
  31. command line -- e.g.,
  32.  
  33.     lsof -F | /<path_to_your_perl_4> list_fields.perl
  34.  
  35. Some scripts also declare a path to lsof -- e.g., the count_pf.perl*
  36. ones -- as ``../lsof'' on the assumption that you'll run them from
  37. the scripts subdirectory and that an lsof executable is in ``../lsof''.
  38. If those assumptions are incorrect for you, you'll have to modify
  39. the scripts.
  40.  
  41.  
  42. Vic Abell
  43. July 21, 1995
  44.