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

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!wsu-cs!hal!atems
  3. From: atems@hal.physics.wayne.edu (Dale Atems)
  4. Subject: Problem passing options to lp using environment variables (resolved)
  5. Message-ID: <1992Aug17.225840.19967@cs.wayne.edu>
  6. Summary: Simple mistake in using the C Shell
  7. Sender: usenet@cs.wayne.edu (Usenet News)
  8. Organization: Dept. of Physics, Wayne State Univ.
  9. References: <1992Aug17.203534.16730@cs.wayne.edu>
  10. Date: Mon, 17 Aug 1992 22:58:40 GMT
  11. Lines: 32
  12.  
  13. In article <1992Aug17.203534.16730@cs.wayne.edu> atems@hal.physics.wayne.edu (Dale Atems) writes:
  14. >I am using an HP LaserJet IIIP with Postscript cartridge as a generic PS
  15. >printer under IRIX 4.0.1. The problem is the following: suppose I do
  16. >
  17. >setenv LPFLAGS '-o"-nobanner"'
  18. >lp $LPFLAGS psfile
  19. >
  20. >where psfile is a postscript file. This works fine. However, if I do
  21. >
  22. >lp $LPFLAGS textfile
  23. >
  24. >on an ordinary text file, the printer activates but nothing is
  25. >actually printed. However,
  26. >
  27. >lp -o"-nobanner" textfile
  28. >
  29. >works. (etc)
  30. >
  31.  
  32. Sorry to post before thinking this out thoroughly. Turns out I found the answer
  33. soon after. Of course, the C Shell strips off the double quotes, so I should
  34. have done
  35.  
  36. setenv LPFLAGS -o"-nobanner"
  37.  
  38. since lp should see -o-nobanner. Apparently lp doesn't mind, but whatever it
  39. passes to lptops probably confuses the filter. Hope someone can profit from
  40. my mistake.
  41.  
  42. ------------------------------------------------------------------------------
  43. Dale Atems
  44. Wayne State University, Department of Physics and Astronomy
  45.