tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: many plotters pulling out jobs from a single queue
@ 1998-05-20 14:00 Charles Vachon
  0 siblings, 0 replies; only message in thread
From: Charles Vachon @ 1998-05-20 14:00 UTC (permalink / raw)
  To: tru64-unix-managers

Original post:

>Hello folks,

>Someone here came up with the idea of having more that one plotter pulling
out >print jobs from a given queue, in order to speed up printing (large
maps drawn >from Arc/Info). After looking around in the documentation from
DU's standard >print utilities, I could not find any information on how to
do this. Our >plotters use parallel-to-ethernet print servers, and are
configured in >/etc/printcap as remote (lpr) printers.

>Any hint, experience, or suggestion of a product that can achieve this
would >be appreciated. Thank you!

----------------------------------------------

This list will always astound me! I received a first answer a mere 20
minutes after posting the question. In all I got 3 answers, all different
and all interesting, from the following people I wish to thank:

Thomas Leitner <tom@finwds01.tu-graz.ac.at> suggests:

One simple idea comes to mind: Create a new queue with a filter script.
In the filter script, check which of the two plotter queues contains
the least number of entries and send the current data to this queue.

For creating a queue with a filter script, use this:

lpgs|ps:\
        :af=3D/var/adm/lplog/lpgs.acct:\
        :lf=3D/var/adm/lplog/lpgs.err:\
        :lp=3D/dev/null:\
        :sh:\
        :of=3D/usr/local/bin/gsfilter.lpgs:\
        :sd=3D/usr/spool/lpgs:

where /usr/local/bin/gsfilter.lpgs would the the filter script.

In the script do something like this:

#!/bin/sh
n1=3D`/usr/bin/lpq -P queue1 | /usr/bin/wc -l`
n2=3D`/usr/bin/lpq -P queue2 | /usr/bin/wc -l`
if [ $n1 -le $n2 ];
    /usr/bin/lpr -P queue1 -x -h ;=20
else
    /usr/bin/lpr -P queue2 -x -h ;=20
fi

Note: This is only an idea and untested.

Hope this helps // Tom

----------------------------------------------

Bruce Taube <Bruce.Taube@InfoAve.Net> answers:

I'm not sure if you can do this with lpr but with LAT you can define
multiple physical devices (plotters) to offer the same LAT service. =20
You can then set up the print queue to point to the LAT service instead of=
=20
just one specific plotter.  LAT would connect to an available plotter.

To accomplish this, your enet-parallel device must support LAT.  If not,
you could get a cheap decserver (100 or 200) and some serial-parallel=20
converters. I've also seen decservers that have parallel ports.

Good Luck,

Bruce Taube
Info Avenue Internet   =20

----------------------------------------------

Matt White <whitem@bofh.usask.ca> points out:

You might want to look at LPRng (http://www.astart.com/lprng/LPRng.html).
It is a replacement print spooler system that has many added capabilities,
one of which is to define a "pool" of printers for a single queue.  It
runs nicely under DU (and a wide range of other systems as well).

---------------------------------------------------------------------
- Matt White                         whitem@arts.usask.ca           -
- Network Technical Support          http://arts.usask.ca/~whitem   -
- College of Arts & Science          University of Saskatchewan     -
---------------------------------------------------------------------
I got into work this morning early this afternoon
Well, my boss-man nudged me, said "Son I've got to talk to you"
	- John Michael Montgomery..."Beer & Bones"


--
Charles Vachon -- Administrateur de syst=E8me
Fonds de la r=E9forme cadastrale du Qu=E9bec
Minist=E8re des Ressources Naturelles du Qu=E9bec
cvachon@mrn.gouv.qc.ca

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-05-20 14:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-20 14:00 SUMMARY: many plotters pulling out jobs from a single queue Charles Vachon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox