Patrick,
Using the following script mods things are working:
read key
if [ "$key" != '*' ] ; then
/usr/bin/ypmatch "$key" printcap.byname
elseif
/usr/bin/ypcat printcap.byname
fi
Thank's everybody for the assistance.
David
[EMAIL PROTECTED] wrote:
>
>
> You can assume, without loss of generality, than any access function will
> be called lebenty-leben times, where leben ranges from 1 to N, where N
> is a value dependent on the whim the implementor.
>
> Ummm.... That is professoreese for 'Yes.'
>
> This '*' is a result of adding the 'wildcard' facility to LPRng. It first
> checks to see if there is a 'specific' printcap entry, and then if there
> isn't one, if there is a wildcard printcap entry.
>
> It is left as an exercise for the student to see if their version of
> ypmatch handles '*' as a key or a regular expression, and the modifications
> of the script and construction.
>
> You could, of course, add:
>
> read key
> if [ "$key" != '*' ] ; then
> /path/to/ypmatch.... $key
> fi
>
>
--
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.
-----------------------------------------------------------------------------