home *** CD-ROM | disk | FTP | other *** search
- 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
- From: story@sgi.com (David (Duis) Story)
- Newsgroups: comp.sys.sgi
- Subject: Re: lpr and gpsinterface
- Message-ID: <snvhei0@twilight.wpd.sgi.com>
- Date: 23 Nov 92 19:49:47 GMT
- References: <98840@netnews.upenn.edu>
- Sender: news@twilight.wpd.sgi.com ( CNews Account at twilight.wpd.sgi.com )
- Organization: Silicon Graphics, Inc.
- Lines: 44
-
- In article <98840@netnews.upenn.edu> raines@bohr.physics.upenn.edu (Paul Raines) writes:
- >Is there anyway to set up a Postscript printer
- >hooked up to a serial port to use the the lpr
- >program with gpsinterface? Or do I just need
- >to get a second program like Transcript?
-
- There are a couple of ways to do this.
-
- First and simplest, you could have the lpr script call something that
- passes the job off to the lp spooler, and thus uses the gpsinterface
- intact and unchanged.
-
- Your printcap entry might look like this:
-
- fake|fake printer:\
- :lp=/dev/null:of=/etc/lpr2lp:
-
- And lpr2lp would be the following script:
-
- --------
- #!/bin/sh
- #
- # quick script to redirect the output of lpr to the default printer
- # under the local lp spooler.
- #
- # to change the destination of the lp, add -d<printername> to the end
- #
- # use this script with a printcap entry of the form:
- #
- # fake|fake printer:\
- # :lp=/dev/null:of=/etc/lpr2lp:
- #
-
- cat - | lp
- ----------
-
- Second, you could use the printer driver (/usr/lib/print/gpscomm)
- directly from your printcap entry.
-
-
- Cheers,
-
- David Story Silicon Graphics, Inc.
- story@bent.wpd.sgi.com Mountain View, California
-