> From [EMAIL PROTECTED] Wed Aug  2 13:45:49 2000
> From: Daniel Mealha Cabrita <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: detecting LPRng _or_ old lpr installed
> Date: Wed, 2 Aug 2000 16:33:59 -0300
>
>
>   folks..
>
>
>     i wrote the Linuxconf's Printer configurator module which is currently
> being updated in order to support LPRng.
>
>      since i still want to support old lpr systems, i'm seeking for a way to
> detect if the installed printer system is LPRng _or_ the old lpr.
>
>       (not so good) ideas given to me until the present time:
>
>       - use 'rpm -q LPRng' to detect its presence -- only works with
> RPM-installed LPRng.
>
>       - detect (for ex.) /etc/lpd.perms.sample -- this method is too dirty. :(
>
>
>       any suggestions?

Ummm... use 'lpr -V </dev/null | grep LPRng'

This will match the LPRng which will be put out by the -V flag.

Hope this helps.

By the way,  where is the source code for the tool?


Patrick Powell                 Astart Technologies,
[EMAIL PROTECTED]            9475 Chesapeake Drive, Suite D,
Network and System             San Diego, CA 92123
  Consulting                   858-874-6543 FAX 858-279-8424 
LPRng - Print Spooler (http://www.astart.com)


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