I finally got around to updating this note and posting.

The "redhat-switch-printer" program allows you to switch between LPRng and
CUPS on RedHat 9.  I looked at their system,  which apparently was taken
from Debian,  and say 'Hats off to the Debian Folks, you clevel devils, you!"

Idea:

(If you have the RedHat 9 installed, do 'man alternatives' to get better details
on how they do switching.)

The idea is that you have a set of utiltity functions that are the same
for several packages:

function    LPRng      CUPS
lpr         lpr.LPRng  lpr.cups
lp          lp.LPRng   lp.cups

...

You have a list of these 'alternatives' somewhere, say:
  print= lpr lp lpq lprm lpc

And a program, say 'alternatives',  so when you do:

alternatives --print LPRng
 it makes the 'print' utilities symbolic links to the
 lpr.LPRng, lp.LPRng, etc.

alternatives --print cups
 it makes the 'print' utilities symbolic links to the
 lpr.cups, lp.cups, etc.

Perhaps everybody knows about this,  but I thought it was quite clever.

Ummm...  I will probably add a 'UpdateRedHat' script that
will check to see if there are the lpr.LPRng files and then
set the installation paths to the appropriate locations.

Too bad that other LINUX/*BSD/*aris distributions do not have/adopt
the same technology as Debian/RedHat/*whatever.

Patrick

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