home *** CD-ROM | disk | FTP | other *** search
- 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
- From: ziegast@uunet.uu.net (Eric Ziegast)
- Subject: Re: finding the MH lib directory
- Message-ID: <9212211725.AA00610@godzilla.UU.NET>
- Newsgroups: comp.mail.mh
- Lines: 24
- Date: 21 Dec 92 17:25:35 GMT
-
- On Dec 8th, Jerry writes:
- > In article <BxLMuD.1BJ@irvine.com> jsweet@irvine.com (Jerry Sweet) writes:
- > > Is there a way to make mhpath cough up the path to the MH library
- > > directory?
- > ...
- > > The answer: I want to invoke ap and dp from external scripts.
- >
- > I've wanted that for a long time. It'd be useful for shell scripts
- > that need to find mhl (especially!) as well as fmtdump, rcvtty, ap/dp,
- > components and scan format files, etc. As it is, the library path
- > has to be hard-coded into scripts and reconfigured for each site.
- > Seems like it'd be a pretty simple hack to mhpath. Comments, anybody?
-
- How about:
-
- tcsh% strings `which scan` | grep /mhl | sed -e 's/\/mhl//'
-
- For me this gives:
-
- /usr/local/lib/mh
-
- I know, it's a hack, and not very portable, but it works.
- --
- Eric Ziegast
-