Subject: Re: PCL over PAP (was Re: Unfamiliar with netatalk printing...)
From: Patrik Schindler (poc@pocnet.net)
Date: Fri May 05 2000 - 02:03:41 EDT
At 12:44 Uhr -0800 04.05.2000, Tom Watson wrote:
>I guess the alternative is to have the Linux box recieve PAP and then
>GhostScript to PCL, sending it out. Proper configuration files necessary
>to do this would be a nice "cookbook" solution.
First thing is getting printing to work under unix.
If you want to send data via pap to the printer, create a file named ".paprc" in the spooldir of the printer. It contains the full NBP-String of the printer:
QMS-PS 410:LaserWriter@*
Even if there are spaces inside I need no quotes around this.
You may look up the exact string with nbplkup.
My printcap entry for a DeskWriter looks like this:
dw|HP DeskWriter:\
:sd=/var/spool/lpd/hpdw:\
:lp=/dev/null:\
:of=/usr/local/printerfilter/ps2dj500:\
:mx#0:sh:
and the "of" is this (ripping data thru gs and send the output via pap to the printer):
#!/bin/sh
trap '' SIGINT
#
DDICT="-dSAFER -dNOPAUSE -dBATCH -dSHORTERRORS -dQUIET"
SDICT="-sPAPERSIZE=a4 -sDEVICE=cdjmono -sOutputFile=-"
OPTS="-q"
#
/usr/bin/gs $OPTS $DDICT $SDICT - |/usr/local/bin/pap -E -e -sstatus
Hope that helps.
:wq! PoC
This archive was generated by hypermail 2b28 : Wed Jan 17 2001 - 14:30:36 EST