Hi,
I just decide to switch from regular lpr to LPRng, and
installed LPRng-3.6.24-1 from RPM.
For now I have left RedHat filtering system (rhs-printfilters)
although updated it to the latest from rawhide which does mention
LPRng compatibility. This is probably the origin of my problem,
but I wanted to avoid ifhp for now, since I have some custom
converters working under rhs-printfilters.
Anyway, lpr from LPRng woks just fine.
What fails is lprm.
With a printer switched off I do
> lpr cover.ps
> lpq
Printer: lp@polarbear '360x360'
Queue: 1 printable job
Server: pid 1674 active
Unspooler: pid 1675 active
Status: processing 'dfA672polarbear.homenet', size 3486, format 'f', IF
filter 'filter' at 00:15:44.419
Filter_status: lp is ready and printing
Rank Owner/ID Class Job Files Size
Time
active dima@polarbear+672 A 672 cover.ps 3486
00:15:44
> lprm 672
Printer lp@polarbear:
checking perms 'dima@polarbear+672'
dequeued 'dima@polarbear+672'
> lpq
Printer: lp@polarbear '360x360'
Queue: no printable jobs in queue
Status: removing job '<NULL>' - ABORT at 00:16:39.012
Filter_status: lp is ready and printing
Or in more detail from tail /var/spool/lpd/lp/lpq.0 the whole session
is
Status: subserver pid 1675 starting at 00:15:44.044
Status: accounting at start at 00:15:44.055
Status: opening device '/dev/lp0' at 00:15:44.056
Status: printing job 'dima@polarbear+672' at 00:15:44.419
Status: processing 'dfA672polarbear.homenet', size 3486, format 'f', IF
filter 'filter' at 00:15:44.419
Status: subserver pid 1675 exit status 'JABORT' at 00:16:39.012
Status: job '<NULL>' error 'no control file <NULL> - No such file or
directory' at 00:16:39.012
Status: removing job '<NULL>' - ABORT at 00:16:39.012
Filter_status: lp is ready and printing
At this stage, I see that my filter process and it's child is not killed
and is still running.
Switching printer on at this moment will produce 1/2 page of garbage
with
Printout-Aborted at the end
> ps -efww
daemon 1683 1 0 00:15 ? 00:00:00 bash
/var/spool/lpd/lp/filter -Adima@polarbear+672 -CA
-D2000-09-05-00:15:44.029 -Ff -Hpolarbear.homenet -Jcover.ps -Ncover.ps
-Plp -Qlp -aacct -b3486 -d/var/spool/lpd/lp -edfA672polarbear.homenet
-fcover.ps -hpolarbear.homenet -j672 -kcfA672polarbear.homenet -l66
-ndima -sstatus -t2000-09-05-00:15:44.000 -w80 -x0 -y0 acct
daemon 1705 1683 0 00:15 ? 00:00:00 sh
/usr/lib/rhs/rhs-printfilters//ps-to-printer.fpi
daemon 1707 1705 0 00:15 ? 00:00:00 gs -q @stc600pl.upp
-sPAPERSIZE=letter -sOutputFile=-
-I/usr/share/fonts/cyrillic/Type1:/usr/share/fonts/cyrillic/T1fromTTF:/usr/share/fonts/cyrillic/TrueType
-
-----------
my printcap record for the queue is the following
##PRINTTOOL3## LOCAL uniprint NAxNA letter {} U_EpsonStylusColor
stc600pl 1
lp|default|360x360:\
:sd=/var/spool/lpd/lp:\
:mx#0:\
:sh:\
:lp=/dev/lp0:\
:if=/var/spool/lpd/lp/filter:
-----------
Thanks for advice, Dmitri Pogosyan
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------