The second error message is due to a problem with your NIS printcap
database and not with LPRng. You need to have an entry in there with a key
of 'all' which contains a list of all your printers. This is something you
need to hack into your NIS Makefile.
[ The stuff written by Paul was for PLP and not LPRng and so does not
directly apply without some modification. You might be advised to go
for Sven Rudolph's approach instead. ]
The first error looks like LPRng cannot find your printcap filter or your
printcap filter is shell script looking for a file that does not exist. If
it is the one in the HOWTO it is probably caused by there being no PATH
specified to the ypmatch command.
Graeme Wood
(one time colleague of Paul)
On Wed, 23 Aug 2000, David Ristau wrote:
> I'm having a problem accessing printcap information from the NIS
> database and I was wondering if anybody else out there could shed some
> light on the matter. Currently I'm using LPRng 3.6.24 on a Solaris 2.6
> system, with the NIS/printcap information from Paul Haldane in the
> HOWTO's.
>
> The problem occurs whenever the value 'all' is passed as a key in the
> NIS map. This happens whenever lpd starts, lpq -a, lpc reread, lpc
> status all, etc. When lpd is started via command line (vice lpc reread),
> it spits out and error and continues to run. At this time if I run lpq
> -P print_queue, lpr -P print_queue print_job, etc. all is fine.
>
> error message:
>
> Filterprintcap: filter '|/opt/LPRng/etc/printcap.filter' failed - No
> such file or directory
>
>
> I checked out an older version of LPRng (LPRng 3.6.12) with the same
> results, different error message:
>
> Can't match key all in map printcap.byname. Reason: no such key in map.
>
> Filterprintcap: filter process exited with status 1
>
>
> My first impression is how LPRng handles wildcard or all encompassing
> readings of the printcap database, but I'm not a code junkie and can not
> find anything useful in the source code. Truss or Debug output can be
> available upon request.
>
>
> Any help or information is appreciated.
>
>
> --
> David Ristau
> Unix System Administrator
> Canada Centre for Remote Sensing
>
>
>
>
> -----------------------------------------------------------------------------
> 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.
> -----------------------------------------------------------------------------
>
=============================================================================
Graeme Wood Email: [EMAIL PROTECTED]
Unix Systems Support Phone: +44 131 650 5003
The University of Edinburgh Fax: +44 131 650 6552
=============================================================================
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------