home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!destroyer!wsu-cs!hal!atems
- From: atems@hal.physics.wayne.edu (Dale Atems)
- Subject: Problem passing options to lp using environment variables
- Message-ID: <1992Aug17.203534.16730@cs.wayne.edu>
- Summary: lp $LPFLAGS file works only if file is postscript
- Sender: usenet@cs.wayne.edu (Usenet News)
- Organization: Dept. of Physics, Wayne State Univ.
- Date: Mon, 17 Aug 1992 20:35:34 GMT
- Lines: 24
-
- 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. Can't figure this one out, though I imagine it has to be something
- simple. Can anyone point out the error of my ways?
-
- ------------------------------------------------------------------------------
- Dale Atems
- Wayne State University, Department of Physics and Astronomy
-
- E-mail replies welcome.
- Send e-mail to atems@igor.physics.wayne.edu
-