Folks,  those of you who wonder just how broken HP printing is,
I would like you to take a look at the lines marked by **** in the
message below.  Note that this has NOTHING to do with the problem
that we are discussing,  it just came up in the error message
information that was send.

Also, Herr Cain, please read the notes at the end of this
message for the next step.

> From [EMAIL PROTECTED] Mon Aug  7 04:01:46 2000
> Date: Mon, 7 Aug 2000 11:54:52 +0200 (MEST)
> From: Philipp Cain <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: LPRng: SYSV lp -o option
>
> > > From [EMAIL PROTECTED] Sat Aug  5 00:02:49 2000
> > > Date: Sat, 5 Aug 2000 08:07:21 +0200 (MEST)
> > > From: Philipp Cain <[EMAIL PROTECTED]>
> > > To: [EMAIL PROTECTED]
> > > Subject: LPRng: SYSV lp -o option
> > >
> > > Hello all,
> > >
> > > I'm doing my first steps with LPRng. 
> > > I set up a linux box as LPRng print server to handle
> > > print jobs from other linux machines as well as from HP SysV
> > > workstations.
> > > The linux part seems to work quite well, especially the -Z options
> > > to choose the tray, duplex printing etc. But using the print options 
> > > on the HPs (lp -o ...) doesn't have any influence on the printout.
> > > Why do I think it should work ? 
> > 
> > You will need to first check to see how the HP SysV print stuff
> > is forwarding the options.
> > 
> > First,  stop the LPRng print queue:
> > 
> > h4: {529} %     lpc stop
> > Printer: t1@h4
> > [EMAIL PROTECTED]: stopped
> > 
> > Now, on your HP system, print to the print queue and make sure that
> > the job has been spooled:
> > 
> > 
> > hp: #  lp -d t1 -o landscape /tmp/one.ps
> > 
> > Now check to see that the job arrived:
> > 
> > h4: {531} % lpq
> > Printer: t1@h4  'Test Printer : 1' (printing disabled)
> >  Queue: 1 printable job
> >  Server: no server active
> >  Rank   Owner/ID                  Class Job Files                 Size Time
> > 1      papowell@hp+490              A   490 /tmp/one.ps            145 12:42:59
> > 
> > Now look in the spool queue and check the control file:
> > 
> > h4: {531} % more /var/spool/lpd/t1/cf*
> > Apapowell@hp+490
> > CA
> > D2000-08-05-12:42:59.257
> > Hhp.private
> > J/tmp/one.ps
> > Lpapowell
> > Ppapowell
> > Qt1
> > Slandscape
> > N/tmp/one.ps
> > fdfA490h4.private
> > UdfA490h4.private
> > 
> > (Note that I faked the Slandscape entry)
> > 
> > If the option is being delivered, then you can use the option conversion stuff.
> > 
> > In the next release of LPRng you will be able to do:
> > 
> > :prefix_option_to_option=S,O Z
> > 
> > which will prefix the options as you need.
> > 
> > 
> > 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)
>
> I did as you told me.
> On HP:
> pino>lp -d fl -o landscape test.ps 
>
> Then the control file looks like this:
> Hpino
> Pcain
> Jfl-201
> C
> Lcain
> A0
> Qfl
> Ntest.ps
> fdfA000pino
> UdfA000pino    
>
> There is neither an O nor an S option, which means the option is
> not forwarded. But besides there is another file in the spool directory
> named hf* :
> bnrname=cain
> cf_esc_image=Hpino%0aPcain%0aJfl%2d201%0aC%0aLcain%0aA0%0aQfl%0aNtes
> t%2eps%0afdfA000pino%0aUdfA000pino%0a
> file_hostname=pino
> filenames=test.ps, Olandscape, B
> format_error=second letter must be f not 'A' - 'cA0201pino'

^^^^  This is a diagnostic that was put into the hold file when
      the job arrived.  Note that RFC1179 says that control file names
      'should' have the following format:

6.2 02 - Receive control file

      +----+-------+----+------+----+
      | 02 | Count | SP | Name | LF |
      +----+-------+----+------+----+
      Command code - 2
      Operand 1 - Number of bytes in control file
      Operand 2 - Name of control file

   The control file must be an ASCII stream with the ends of lines
   indicated by ASCII LF.  The total number of bytes in the stream is
   sent as the first operand.  The name of the control file is sent as
   the second.  It should start with ASCII "cfA", followed by a three
   digit job number, followed by the host name which has constructed the
   control file.  Acknowledgement processing must occur as usual after
   the command is sent.

Note the cfA... Right... and they have 'cA' and a 4 digit
job number...  and the host name.


<aside>
Anybody wonder why I froth at the mouth some days?
And this is the company that is MAKING the printers!!!

<froth>Growly growly</froth>

There.  I feel much better. A froth a day keeps sanity at bay.

</aside>

> fromhost=pino
> held=0x0
> hf_name=/var/spool/lpd/fl/hfA000
> hold_class=0x0
> hold_time=0x0
> identifier=0
> job_time=0x398e841e
> job_time_usec=0x6e540
> jobname=fl-201
> logname=cain
> number=000
> priority=A
> queuename=fl
> size=6250
> transfername=cfA000pino
> update_time=2000-08-07-11:40:46.453  
>
> The -o option seems to be included in "filenames".
>
> Maybe you can give me a hint how to procede further. 
> ( Besides installing LPRng on the HPs :-).
>
> Philipp.
>
We are closing in a bit.

The 'filenames=test.ps, Olandscape, B' seems to be the key to this
problem.  But I need a bit more data.

a) Make sure you are running the latest release of the LPRng
   server,  as the debugging options are only there in LPRng-3.6.18
   or later.

b) Do:

   cp /dev/null /var/spool/.../log   <- clear out the log file in the
                                        spool directory.
   lpc debug cain lpr+4  <- This turns incoming job debugging on.

   lp -....      <- send the job

   lpc debug cain off  <- turns debugging off

   Now send me the /var/spool/.../log file.

Thanks!

Patrick

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