[comp.sys.next] banner on NextPrinter

34T7YGG@CMUVM.BITNET (Todd Swan aka The Analog Kid) (03/23/91)

Is there  any way to  get the  Next Laser Printer  to print a  banner. I
tried  adding  of=/usr/lib/transcript/psof  because this  works  on  the
PostScript printers  on the Suns we  have here but it  doesn't work. The
file /usr/lib/transcript/psof  does exist.  If anyone  has a  solution I
would appreciate the help.


                                              Todd


================================================================
!   PLEASE DEFINE:    Ingorance      ! Todd Swan               !
!                                    ! 34T7YGG at CMUVM.BITNET !
!                     Apathy         ! Central Michigan Univ.  !
================================================================
!     I don't know and               ! aka The Analog Kid      !
!         I don't care....           ! ...at your service...   !
================================================================

frank@urz.unibas.ch (03/25/91)

In article <91081.12525734T7YGG@CMUVM.BITNET>, 34T7YGG@CMUVM.BITNET (Todd Swan aka The Analog Kid) writes:
> Is there  any way to  get the  Next Laser Printer  to print a  banner. I
> tried  adding  of=/usr/lib/transcript/psof  because this  works  on  the
> PostScript printers  on the Suns we  have here but it  doesn't work. The
> file /usr/lib/transcript/psof  does exist.  If anyone  has a  solution I
> would appreciate the help.
> 
It's a hack, but it should work (I do something similarily to automatically
turn off my laser printer after printing):

Instead of using the output filter, use the input filter: The printer spooler
calls the inputfilter /usr/lib/NextPrinter/npcomm. You can either move it
to /usr/lib/NextPrinter/npcomm.prg (or similar) and create a shell script
with the name /usr/lib/NextPrinter/npcomm OR change the entry in NetInfo
printers Local_printer if ... . In the shell script, pass all input from
standard in to the actual filter program and then pipe your bannerpage
to the same program. Of course, you need some program (or shell script) to
generate a banner page.)
example file:

#!/bin/sh
cat - | /usr/lib/NextPrinter/npcomm.prg $*
mkbanner | /usr/lib/NextPrinter/npcomm.prg

There are probably better ways, I just don't know of them...
-Robert

Robert Frank, Inistitut fuer Informatik, University of Basel, Switzerland