Red Hat Bugzilla – Bug 66133
No way to print files either in an order or contiguously
Last modified: 2005-10-31 17:00:50 EST
Description of Problem:
I've sets of several postscript files I need to print, in order
with no other jobs inserted into the set. A printer has been
dedicated to this. A single set consists of some postsript files,
each of which must be printed in it's given position relative
to the others in the set.
lpr -B doesn't work. Nothing comes out. There's nothing in
the /var/spool/lpd/<printer>status.<printer> file. Sometimes there's
a delay with a lot of cpu consumption and sometimes there's
what seems to be an even longer delay with no cpu used.
lpr -B would solve my problem. The files in the set would
be in a guarenteed order and another job could not be inserted
into the middle of a set.
The printer works fine when individual jobs are printed, but
(apparently) because the files are of different sizes,
they (apparently) don't make it into the queue until after
varying amounts of background processing and delay. So,
I can't order the files.
Because the printer is dedicated to this application, I tried
using a lock, to ensure that only one "set" of files is queued
at a time. But this means that I have to order the files within
the sets, and I can't do this because...
lpr -G dosen't work. It gives me a usage message. If it worked,
all the processing that normally occurs in the background would
be in the forground, and I could be sure that the order in which
I submit the jobs is the order in which they are inserted into
the queue. (Yes?)
I thought of using the class, lpr -C, to prioritize the print jobs.
But that means that I can
have only 26 jobs in the queue before the queue wraps and things
break. (Plus the hassle of having to keep state laying around.)
There doesn't seem to be a workaround. (If I ever do get it working,
I'd like to use custom banners to inject some PCL into the
printer's data stream, varying per file. It would be good if a
solution would accomidate this. But really, I want lpr -B to work.)
Version-Release number of selected component (if applicable):
I'm using RedHat 7.2 with LPRng 3.7.4 (redhat release 28),
which uses magicfilter as the input filter and am printing
over the network to a HP 4100-tn laser printer. The printer
driver is "lj5gray".
Steps to Reproduce:
Try something like:
echo cover1 | lpr
echo cover2 | lpr
echo cover3 | lpr
echo cover4 | lpr
Either use big files or a slow system to really see the impact.
Print jobs don't come out in the order submitted.
Print jobs should come out in the order submitted.
One of the things that's going on here is I'm trying to use
colored paper from another tray in specific places to help
in separating the print output.
This seems like a very basic requirement for a printing subsystem.
Confirmed, and it still happens in LPRng 3.8.x.
We use the CUPS spooler now; closing.