> From [EMAIL PROTECTED] Mon Dec 29 08:11:35 2003
> Date: Mon, 29 Dec 2003 08:56:57 -0600
> From: Jeremy Baumgartner <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: Problem with routing scripts
>
> I'm trying to use a router script to filter out bsize (ledger) print
> jobs and route them to a single printer instead of to the gang of
> printers.
>
> We want to have multiple input queues which get fed into a single
> routing queue.  Most jobs will be routed to cae-170-gang, which load
> balances to cae-1, cae-2, and cae-3.  If a job is bsize, it should be
> redirected to cae-3, bypassing the cae-170-gang.  Here's a pretty ASCII
> picture...
>
> cae-170-laser ---\                                     /--> cae-1
> cae-170-duplex -----> cae-170-router ---> cae-170-gang ---> cae-2
> cae-170-bsize ---/                   \-----------------\--> cae-3
>
> This seems fairly simple.  All the documentation and mailing list
> responses I've read say 'Just make a script...'  Unfortunately, that
> isn't working.
>
> Here is my printcap:
> -- snip --
> .common
>       :sd=/var/spool/lpd/%P
>       :queue_lock_file=/var/spool/lpd/%P/%P.lock
>       :full_time
>       :safe_chars=\\#"?
>       :ignore_requested_user_priority
>       :break_classname_priority_link
>
> .router
>       :lpd_bounce
>       :lp=/dev/null
>
> cae-170-router
>       :tc=.common
>       :tc=.router
>       :destinations=cae-170-gang,cae-3
>       :router=/opt/printserver/CAE/router

Try adding a printcap entry for the cae-170-gang printer OR
use '[EMAIL PROTECTED]':


 cae-170-gang:
        :tc=.common
        :lp=/dev/null

OR:
 #!/bin/sh
 cat <<EOF
 dest [EMAIL PROTECTED]
 end

> -- snip --
>
> The router is a simple shell script (very simplified for testing):
> -- snip --
> #!/bin/sh
> cat <<EOF
> dest cae-170-gang
> end
> EOF
> -- snip --
>
> I have tried setting up the cae-170-router entry without any :tc=
> entries, but the result is the same.  The jobs enter the cae-170-router
> queue, but never get forwarded to their proper destination
> (cae-170-gang).
>
> As I said, I have looked at many different people's solutions, but none
> of them work for me.  Any assistance would be greatly appreciated.
>
> Thank you.
>
> --
> Jeremy Baumgartner - [EMAIL PROTECTED]
> CAE UNIX Systems Staff
>
> "Debugging is twice as hard as writing the code in the first place. 
> Therefore, if you write the code as cleverly as possible, you are, by
> definition, not smart enough to debug it."
>   - Brian W. Kernighan

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