I user LPRng-3.8.9-4 on redhat 7.3

I defineded  a loadbalancing queue xeroxt with2 subservers xeroxt1 an xeroxt2
In the howto documentation is stated that the available queues are passed to the
chooser program on stdin

The problem is that I don't always get both queues
When I send a job to the printer I see that the firs time the chooser script
is run that there are no queues on stdin. So I return no queue on stdout and exit with 
return code 0
After a few seconds the chooser script is started again and now 1 or both queues are 
available on stdin.
What strikes me as odd is the fact that when I return no queue the following is logged 
by lprng
 Status: chooser did not find subserver, waiting 10 sec at 09:48:42.277
But only after 2 seconds the chooser script is started again



Output of lpr -L xeroxt
 Status: Filter_file: pgm '/usr/local/lib/XeroxDP75/programs/chooser.sh' exited with 
status 'JSUCC' at 09:48:42.277
 Status: chooser did not find subserver, waiting 10 sec at 09:48:42.277
 Status: subserver pid 17328 exit status 'JSUCC' at 09:48:44.223
 Status: subserver pid 17327 exit status 'JSUCC' at 09:48:44.223
 Status: Filter_file: pgm '/usr/local/lib/XeroxDP75/programs/chooser.sh' exited with 
status 'JSUCC' at 09:48:44.320
 Status: CHOOSER selected 'xeroxt2' at 09:48:44.320
 Status: transferring 'root@raider+325' to subserver 'xeroxt2' at 09:48:44.320

Log of my chooser script
Fri Nov 8 09:48:42 CET 2002 pid=17330 start
Fri Nov 8 09:48:42 CET 2002 pid=17330 No queues available
Fri Nov 8 09:48:44 CET 2002 pid=17342 start
Fri Nov 8 09:48:44 CET 2002 pid=17342 STDIN: xeroxt2,xeroxt1
Fri Nov 8 09:48:44 CET 2002 pid=17342 selected: xeroxt2
Fri Nov 8 09:48:44 CET 2002 pid=17342 stop

My printcap file
xeroxt1|XEROXT1
:af=acct
:lf=log
:lp=/tmp/xeroxt1
:mx=0
:sd=/var/spool/lpd/%P
:sh
:ss=XEROXT

xeroxt2|XEROXT2
:af=acct
:lf=log
:mx=0
:sd=/var/spool/lpd/%P
:sh
:ss=XEROXT
:lp=/tmp/xeroxt2

xeroxt|XEROXT
:af=acct
:lf=log
:mx=0
:sd=/var/spool/lpd/%P
:sh
:sv=XEROXT1,XEROXT2
:chooser=/usr/local/lib/XeroxDP75/programs/chooser.sh





--
Mark Vinkx
E-mail : [EMAIL PROTECTED]
Phone  : 016 34.78.92
Mail: Universitaire Ziekenhuizen Leuven
Dienst Informatiesystemen
Herestraat 49
3000 Leuven, Belgium



-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

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.
-----------------------------------------------------------------------------

Reply via email to