The only way I can think to do this would be to write a Perl script
which checks to see whether the main print server is accepting
connections on port 515, and then calls lpr based on that. Then you
would use that perl script for your client printing program.

There may be an easier way, I just don't know about it. :)

Lars Kellogg-Stedman wrote:
> 
> I'm setting up a new printing architecture at <random company X>, and we'd
> like to make sure people can continue printing when our primary print
> server fails.
> 
> We will shortly be setting up a duplicate print server (one that is
> synchronized against the master nightly using rsync), but I haven't been
> able to figure out how to do any sort of failover with the LPRng clients.
> 
> All of our client systems are running lpr in "client-only" mode -- no local
> lpd; all jobs go straight to the server.  I'd like the clients to do
> something like this:
> 
>   IF the primary print server is available THEN
>         print to the primary print server
>   ELSE IF the secondary print server is available THEN
>         print to the secondary print server
>   ELSE
>         die gracefully
> 
> Is it possible to do anything like this?
> 
> -- Lars
> 
> --
> Lars Kellogg-Stedman <[EMAIL PROTECTED]> --> http://www.larsshack.org/
> 
> -----------------------------------------------------------------------------
> 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.
> -----------------------------------------------------------------------------

-- 
Jules Agee
System Administrator
Pacific Coast Feather Co.
[EMAIL PROTECTED]   x284

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