Re: LPRng Printing Problem
Hi,
On Thu, Dec 02, 1999 at 08:54:19AM -0500, David Wilson wrote:
> I recently installed potato and am new to Linux. I seem unable to print using LPRng and haven't found any helpful information in HOW-TOs, although I'm sure the info I need is there somewhere. When I issue the "lpr file.ps" command, nothing happens, no errors, no output.
>
> I have two parallel ports (in Windows they are LPT1 and LPT2). My printer is connected to the second port (/dev/lp1?).
>
> My printer is an HP720C (I know ...). I have install pbm2ppa and can successfully run the following script to directly send a file to the printer:
>
> #! /bin/sh
> cat $1 | gs -sDEVICE=pbmraw -q -dNOPAUSE -r600 -sOutputFile=- - | \
> pbm2ppa - - >/dev/lp1
>
> I have modified this script (as per the documentation for pbm2ppa) to use as a filter in the printcap file:
>
> #! /bin/sh
> gs -sDEVICE=pbmraw -q -dNOPAUSE -r600 -sOutputFile=- - | \
> pbm2ppa - - |
^
Why this pipe?
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
> This file is saved as: /usr/local/bin/printps.filter. My printcap file reads:
>
> lp|hpdj720|HP Deskjet 720c:\
> :lp=/dev/lp1:sd=/var/spool/lpd/hpdj720:\
> :sh:pw#80:pl#66:px#1440:mx#0:\
> :if=/usr/local/bin/printps.filter:\
> :af=/var/log/lp-acct:lf=/var/log/lp-errs:
>
What is in /var/log/lp-acct and in /var/log/lp-errs ?
Mirek
Reply to: