home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sgi / 12503 < prev    next >
Encoding:
Text File  |  1992-08-17  |  1.2 KB  |  36 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!destroyer!wsu-cs!hal!atems
  3. From: atems@hal.physics.wayne.edu (Dale Atems)
  4. Subject: Problem passing options to lp using environment variables
  5. Message-ID: <1992Aug17.203534.16730@cs.wayne.edu>
  6. Summary: lp $LPFLAGS file works only if file is postscript
  7. Sender: usenet@cs.wayne.edu (Usenet News)
  8. Organization: Dept. of Physics, Wayne State Univ.
  9. Date: Mon, 17 Aug 1992 20:35:34 GMT
  10. Lines: 24
  11.  
  12. I am using an HP LaserJet IIIP with Postscript cartridge as a generic PS
  13. printer under IRIX 4.0.1. The problem is the following: suppose I do
  14.  
  15. setenv LPFLAGS '-o"-nobanner"'
  16. lp $LPFLAGS psfile
  17.  
  18. where psfile is a postscript file. This works fine. However, if I do
  19.  
  20. lp $LPFLAGS textfile
  21.  
  22. on an ordinary text file, the printer activates but nothing is
  23. actually printed. However,
  24.  
  25. lp -o"-nobanner" textfile
  26.  
  27. works. Can't figure this one out, though I imagine it has to be something
  28. simple. Can anyone point out the error of my ways?
  29.  
  30. ------------------------------------------------------------------------------
  31. Dale Atems
  32. Wayne State University, Department of Physics and Astronomy
  33.  
  34. E-mail replies welcome.
  35. Send e-mail to atems@igor.physics.wayne.edu
  36.