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