[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: LPRng Printing Problem



Mirek Kwasniak wrote:
> > #! /bin/sh
> > gs -sDEVICE=pbmraw -q -dNOPAUSE -r600 -sOutputFile=- - | \
> > pbm2ppa - -  |
>                ^
>                Why this pipe?
pbm2ppa converts the ghostscript output into something my
HP 720 can understand (ppa?).  The above script is verbatum
from the pbm2ppa documentation.  I have tested the above 
script and pbm2ppa program and can directly send a postscript
file to the printer, I just can spool it with lprng.


> When I have problems with filters I use tracing, try change your filter to:
> 
> #! /bin/sh
> (
> set -x
> gs -sDEVICE=pbmraw -q -dNOPAUSE -r600 -sOutputFile=- - | \
> pbm2ppa - -
> ) 2> /tmp/printer.log
> 

I tried this and the file /tmp/printer.log wasn't created, suggesting to
me that lprng didn't even to as far as trying to filter the file?


> What is in /var/log/lp-acct and in /var/log/lp-errs ?

lp-errs is empty.
lp-acct contains:

jobstart '-Hlf2220f.umd.edu' '-ndave' '-Plp' '-kcfA949lf2220f.umd.edu'
'-b16213' '-t1999-12-03-08:38:19.000'
jobend '-Hlf2220f.umd.edu' '-ndave' '-Plp' '-kcfA949lf2220f.umd.edu'
'-b16213' '-t1999-12-03-08:38:19.000'
jobstart '-Hlf2220f.umd.edu' '-ndave' '-Plp' '-kcfA035lf2220f.umd.edu'
'-b16213' '-t1999-12-03-08:46:41.000'
jobend '-Hlf2220f.umd.edu' '-ndave' '-Plp' '-kcfA035lf2220f.umd.edu'
'-b16213' '-t1999-12-03-08:46:42.000'
jobstart '-Hlf2220f.umd.edu' '-ndave' '-Plp' '-kcfA084lf2220f.umd.edu'
'-b16399' '-t1999-12-03-08:56:22.000'
jobend '-Hlf2220f.umd.edu' '-ndave' '-Plp' '-kcfA084lf2220f.umd.edu'
'-b16399' '-t1999-12-03-08:56:23.000'

The rights on all relevant files (pbm2ppa, filter script, /var/lpd, etc) 
daemon.lp.

Thanks for your help.

Dave


Reply to: