home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / mail / mh / 1428 next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.1 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!agate!dog.ee.lbl.gov!network.ucsd.edu!news.service.uci.edu!ucivax!gateway
  2. From: ziegast@uunet.uu.net (Eric Ziegast)
  3. Subject: Re: finding the MH lib directory
  4. Message-ID: <9212211725.AA00610@godzilla.UU.NET>
  5. Newsgroups: comp.mail.mh
  6. Lines: 24
  7. Date: 21 Dec 92 17:25:35 GMT
  8.  
  9. On Dec 8th, Jerry writes:
  10. > In article <BxLMuD.1BJ@irvine.com> jsweet@irvine.com (Jerry Sweet) writes:
  11. > > Is there a way to make mhpath cough up the path to the MH library
  12. > > directory?
  13. >     ...
  14. > > The answer: I want to invoke ap and dp from external scripts.
  15. >
  16. > I've wanted that for a long time.  It'd be useful for shell scripts
  17. > that need to find mhl (especially!) as well as fmtdump, rcvtty, ap/dp,
  18. > components and scan format files, etc.  As it is, the library path
  19. > has to be hard-coded into scripts and reconfigured for each site.
  20. > Seems like it'd be a pretty simple hack to mhpath.  Comments, anybody?
  21.  
  22. How about:
  23.  
  24.     tcsh% strings `which scan` | grep /mhl | sed -e 's/\/mhl//'
  25.  
  26. For me this gives:
  27.  
  28.     /usr/local/lib/mh
  29.  
  30. I know, it's a hack, and not very portable, but it works.
  31. --
  32. Eric Ziegast
  33.