home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!wsu-cs!hal!atems
- From: atems@hal.physics.wayne.edu (Dale Atems)
- Subject: Problem passing options to lp using environment variables (resolved)
- Message-ID: <1992Aug17.225840.19967@cs.wayne.edu>
- Summary: Simple mistake in using the C Shell
- Sender: usenet@cs.wayne.edu (Usenet News)
- Organization: Dept. of Physics, Wayne State Univ.
- References: <1992Aug17.203534.16730@cs.wayne.edu>
- Date: Mon, 17 Aug 1992 22:58:40 GMT
- Lines: 32
-
- In article <1992Aug17.203534.16730@cs.wayne.edu> atems@hal.physics.wayne.edu (Dale Atems) writes:
- >I am using an HP LaserJet IIIP with Postscript cartridge as a generic PS
- >printer under IRIX 4.0.1. The problem is the following: suppose I do
- >
- >setenv LPFLAGS '-o"-nobanner"'
- >lp $LPFLAGS psfile
- >
- >where psfile is a postscript file. This works fine. However, if I do
- >
- >lp $LPFLAGS textfile
- >
- >on an ordinary text file, the printer activates but nothing is
- >actually printed. However,
- >
- >lp -o"-nobanner" textfile
- >
- >works. (etc)
- >
-
- Sorry to post before thinking this out thoroughly. Turns out I found the answer
- soon after. Of course, the C Shell strips off the double quotes, so I should
- have done
-
- setenv LPFLAGS -o"-nobanner"
-
- since lp should see -o-nobanner. Apparently lp doesn't mind, but whatever it
- passes to lptops probably confuses the filter. Hope someone can profit from
- my mistake.
-
- ------------------------------------------------------------------------------
- Dale Atems
- Wayne State University, Department of Physics and Astronomy
-