> From [EMAIL PROTECTED] Mon Dec 10 20:37:40 2001
> Date: Mon, 10 Dec 2001 20:42:28 -0700 (MST)
> From: Yves Dorfsman <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: lp -o landscape
>
>
> First I apologize to put such a basic question on this list, but it is
> driving me unsane right now.

Sounds like normal behaviour when dealing with printing. :-)

>
> Is there a trick (a special config ?) to get lprng to transfer the options
> form "lp -o" (or lpr -Z) ??
>
> Here's my config:
>
> I have one Solaris print server, running lpd from Solaris (as a server),
> and using the jetadmin suite to talk the printers. I have serveral client
> (as far as printing is concerned), all sending their request to the
> Solaris print server. Clients are Solaris or HPUX. Unfortunately, HPUX rlp
> does not send the -o options to the server. I have talked with HP, this is
> a known fact, and they have a request enhancement about it. So I decided
> to install lprng, but that doesn't seem to work either.
>
> I know that the server accept the -o options, because when I try
> lp -o lanscape -d printer_name filename
> on a Solaris client, it prints in landscape mode.
>
> Yet, from my hp with LPRng installed, it still prints in protrait....
>
> Any idea ??
>
> Yves.
> ----
> Yves Dorfsman                                             [EMAIL PROTECTED]

Simplest solution:
  Rip out the Solaris/HP printing support and install LPRng everywhere.

Complex and ugly solution:

Solaris/HPUX puts the options into control files as 'O' or 'S'
values, depending on the version/vintage/patch level.
You need to determine where they are.  Ummm... I did mention verion
and patch, didn't I.

I really really really really suggest that you install LPRng as the
print server on Solaris... You can toss the jetadmin and all the other
stuff and install ifhp... with error messages.

The problem is that you need to force the various LPR/LP clients
to send their options on the O or S line in the control file.

OK,  here is what you need to do:
  a) find out what line the Solaris print spooler expects the options
  b) forcd lpr to put the options on those lines.

Ummm... to do a) you will have to experiment a bit:

1. On the server running LPRng, set up
   a print queue lp (you can use the following printcap entry:
          lp:lp=/dev/null
            :sd=/var/spool/lpd/%P

   run checkpc to create the spool queue directory,  and then
   run 'lpc reread' to force the LPD server to use the printer.
 
   Stop the queue using:
          lpc stop lp

2. On the Solaris system,  set up a remote print queue- 
        lp on the LPRng server.

3. On Solaris,  send a job with options:
        lp -o this

   Note: you may have to fight the lpadmin and setup stuff to
   allow you to specify options,  but persist.

4. Look at the control file on the server running LPRng:
        more /var/spool/lpd/lp/cf*

   You will see ether Ooption  or Soption
   in the control file.

   remove the job:
         lprm -Plp all

5. You now know what option line Solaris expects.

    Change the printcap to:
          lp:lp=solaris_queue@solaris_host
            :sd=/var/spool/lpd/%P
            :prefix_option_to_option=Z O

    lpc reread

6.  Now send a job to the solaris server:

    lp -o landscape

This should work - I tried it...

Note: in order to be compatible,  I really shoujld
   add a 'option_key=Z' or 'option_key=S' for LPR
   to put its options on the Z or S or whatever line...

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.lprng.com)

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