> From [EMAIL PROTECTED] Mon Mar  4 20:12:37 2002
> From: "Chris Herrmann" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: RE: LPRng: idiot check on a canon lbp 1000
> Date: Tue, 5 Mar 2002 13:57:49 +1100
>
> The only entry that looks like it might be ok is the canon lbp 4+, however
> that's quite a different animal from the lbp 1000... which is a descendant
> of the 400/600/800 series.
>
> I'm using the pxlmono ghostscript device - is this what you're referring to?
> I know that ghostscript is trying to print to /dev/lp0... but I suspect
> that's not what you're asking me!

yes.

Now look in the /etc/ifhp.conf file:
....
## The third entry (and rest of line) is the conversion program and
## options to use.  As shown above, this can be an option whose
## value is expanded and substituted.  For example:
##
## gs_converter= /usr/local/bin/gs -dSAFER -dPARANOIDSAFER -dBATCH -dNOPAUSE -q 
'-sOutputFile=|/bin/cat >&3' 3>&1 1>&2
##   -sDEVICE=\%s{gs_device} \%s{gs_options} -
##
## Note: the above clever trick was used by the Foomatic (www.linuxprinting.org)
##   but has been since spotted in the wild in other scripts.
##
## ps_converter= [ \%s{gs_converter} ]

You now should try the script below

#!/bin/sh
out=10.0.0.4%9100
out=/tmp/out 
#debug=debug=4
file=/tmp/hi
file=/tmp/one.ps
#model=console@
#model=info=variables
model="gs_device=pxlmono"
cp /dev/null /tmp/out
ifhp=/usr/libexec/filters/ifhp
$ifhp -Tdev=$out,trace,$debug,$model <$file 2>&1 | tee /tmp/log

This will run the ifhp filter and tell you if the thing works.
If, say, the cannon is loose... I mean on a network connection, set:

out=IP.ADDR%PORT (i.e. 10.0.0.14%9100)

OR if it is on the parallel port,
out=/dev/lp0

and rerun the script.  If you get output, you are happy.

Now edit the /etc/printcap file and set:

lp:
  :filter=/usr/libexec/filters/ifhp
  :ifhp=gs_device=pxlmono
  :lp=/.....                     # i.e. the device you are using. 

Enjoy!

Patrick

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to