> Also, please advice me what can we do with passing the Z options
> from standard solaris lpr/lpd command to lprng server.
> I have little experience with (horrible) solaris print system.
> I asked on this some time before.
>
> Thanks.
>
> With regards,
>
> -- 
> Krzysztof Gozdziewski

Did you see the note from Gerald Damian?  Essentially,
you update the /etc/printers.conf file so that Solaris lp
puts the option values on the S (or it might be O) command
line:

#
# The preferred method of modifying this file is through the use of
# lpset(1M) or fncreate_printer(1M)
#
pr:bsdaddr=servername,pr,Solaris:       <- Solaris at end is important
_default:use=pr:                        <- sets default printer

Now you can do lp -o this

and in the control  file you will get:

Hhostname
Pusername
Sthis

(Or perhaps on the O line, you get 'Othis').

And you set the :prefix_option_to_optiop=S,O Z
in the printcap:

(From the CHANGES file:

  I ran into problems with the SysV to LPRng option passing. Apparently
   different versions of SysV printing pass options as S, O, or
   whathave you values in the control file.  The prefix_o_to_z
   option has been replaced by the more general 'prefix_option_to_option'
   facililty.  This specifies the control file option lines to
   prefix to a control file option line.  For example:

    prefix_option_to_option=S,O Z  will prefix S and O to Z
    prefix_option_to_option=Z O    will prefix Z to O.

    This now appears to cover all cases,  and the LPRng HOWTO
    has been modified as well.

)

So your printcap would look like

pr:lp=%P@server
pr:server:
  :prefix_option_to_option=S,O Z
  :lp=....
  ...

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