From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078708811706.tru64-unix-managers.marc@archive.invalid> From: Charles Vachon Date: Wed, 20 May 1998 14:00:10 +0000 To: tru64-unix-managers Subject: SUMMARY: many plotters pulling out jobs from a single queue X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078708811706 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 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 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 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