home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sgi / 16784 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  1.6 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!sdd.hp.com!swrinde!cs.utexas.edu!sun-barr!olivea!sgigate!odin!twilight!story
  2. From: story@sgi.com (David (Duis) Story)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: lpr and gpsinterface
  5. Message-ID: <snvhei0@twilight.wpd.sgi.com>
  6. Date: 23 Nov 92 19:49:47 GMT
  7. References: <98840@netnews.upenn.edu>
  8. Sender: news@twilight.wpd.sgi.com ( CNews Account at twilight.wpd.sgi.com )
  9. Organization: Silicon Graphics, Inc.
  10. Lines: 44
  11.  
  12. In article <98840@netnews.upenn.edu> raines@bohr.physics.upenn.edu (Paul Raines) writes:
  13. >Is there anyway to set up a Postscript printer
  14. >hooked up to a serial port to use the the lpr
  15. >program with gpsinterface?  Or do I just need
  16. >to get a second program like Transcript?
  17.  
  18. There are a couple of ways to do this.  
  19.  
  20. First and simplest, you could have the lpr script call something that
  21. passes the job off to the lp spooler, and thus uses the gpsinterface
  22. intact and unchanged.
  23.  
  24. Your printcap entry might look like this:
  25.  
  26. fake|fake printer:\
  27.     :lp=/dev/null:of=/etc/lpr2lp:
  28.  
  29. And lpr2lp would be the following script:
  30.  
  31. --------
  32. #!/bin/sh
  33. #
  34. # quick script to redirect the output of lpr to the default printer
  35. # under the local lp spooler.
  36. # to change the destination of the lp, add -d<printername> to the end
  37. #
  38. # use this script with a printcap entry of the form:
  39. #
  40. # fake|fake printer:\
  41. #    :lp=/dev/null:of=/etc/lpr2lp:
  42. #
  43.     
  44. cat - | lp
  45. ----------
  46.  
  47. Second, you could use the printer driver (/usr/lib/print/gpscomm)
  48. directly from your printcap entry.
  49.  
  50.  
  51. Cheers,
  52.  
  53. David Story                                    Silicon Graphics, Inc.
  54. story@bent.wpd.sgi.com                Mountain View, California
  55.