HP printer prints out extra paper with bitmapped PC-NFS applications

Mary Rock rock at ida.org
Thu Mar 28 07:35:00 AEST 1991


We have an HP series II connected to the serial port of a Sun 3/50.  All
of the users on the network use PC-NFS.  The problem is that two extra
sheets of blank paper are printed out at the end of any Bitmapped MS/DOS
based application.  I've tried sending an escape  sequence ,that HP
suggested, that would cause the printer commands to be  printed out.
Nothing that printed indicated a form feed or page eject.  This wouldn't
be that big a problem if it weren't for the fact that the users generate
many one page jobs so for every page of printed material they get three
blank sheets ( 2 at the end and one at the beginning assumed to be a
banner)  The following is our /etc/printcap entry:

hp1|hplj1|HP1 LaserJet:\
        :lp=/dev/ttyb:\
        :sd=/usr/sp/lpd/hp1:\
        :br#19200:pw#80:\
        :ms=-parity,-cstopb,clocal,cread,crtscts,ixon,-opost:\
        :lf=/usr/adm/hp1-errs:\
        :af=/usr/adm/hp1.acct:\
        :sh:tr=\f:of=/usr/lib/hplaserjet:

This entry was given to use by a Sun Techie.

The filter indicated my the of=/usr/lib/hplaserjet is as follows:
#!/bin/csh -f
#
#@(#)hplaserjet 1.1 88/10/27 Sun Microsystems Inc 1988
#This is the output filter form used with HP LaserJet II
#It first resets the printer
#All it does is send the escape sequenct to the printer, so that:
#       CR is mapped to CR
#       LF is mapped to CR LF
#       FF is mapped to CR FF
/usr/bin/echo  '^[E'
/usr/bin/echo  '^[&k2G'
/usr/bin/cat
if ($status == 0) then exit 0 else exit 1 endif

I've even commented out both the /usr/bin/echo commands and the 2 sheets
still come out.   The DOS applications are set up so that they are sending
in raw mode to the  sun server. 

 Any help that you can provide will be greatly appreciated.

Thanks,

Mary J. Rock
rock at ida.org



More information about the Comp.sys.sun mailing list