hi,
I retried
file_output_match = [
*postscript* ps \%s{ps_converter}
*pcl* pcl \%s{pcl_converter}
*pjl* pjl \%s{pjl_converter}
*text* ps /usr/libexec/filters/ascii \%s{Z}
*printer*job*language* pjl
*gzip_compressed* filter \%s{gzip_decompress}
]
...nothing happened, then I discovered that under Solaris the -Z option
isn't passed to the control-file:
solaris:
Aroot@printsrv4+429
Cprintsrv4
Hprintsrv4.desy.de
J(stdin)
Lroot
Proot
Qr02ps10
N(stdin)
fdfA429printsrv4.desy.de
UdfA429printsrv4.desy.de
linux:
Aroot@pcx1839+713
CA
D2000-09-29-11:13:35
Hpcx1839.desy.de
J(stdin)
Lroot
Proot
Qr02ps10
Zlandscape
N(stdin)
fdfA713pcx1839.desy.de
UdfA713pcx1839.desy.de
Everything works fine now except under SOLARIS, I tried a few different
releases (2.5.1, 2.6, 2.7) but didn't succeed, though LPRng is installed
on all these hosts.
Regards Christoph
Johan Claesson schrieb:
>
> Christoph Beyer wrote:
> >
> > Johan Claesson schrieb:
> > >
> > > Christoph Beyer wrote:
> > > >
> > > > printcap:
> > > >
> > > > r02ps10|2b_200_p1|HP_4000N:\
> > > > :sd=/usr/spool/lpd/request/r02ps10:\
> > > > :lp=r02ps10%9100:\
> > > > :lf=/usr/spool/lpd/request/%P/log:\
> > > > :ifhp=model=hp4m:\
> > > > :filter=/usr/libexec/filters/ifhp:\
> > > > :bp=/usr/libexec/filters/psbanner:\
> > > > :of=/usr/libexec/filters/ifhp:\
> > > > :mx#0:\
> > > > :bk:\
> > > > :du#16:\
> > > >
> > > > ifhp.conf:
> > > >
> > > > # PRINTER % - HP LaserJet 4M, has limited pagecount capability
> > > > [ hp4m ]
> > > > pagecount=ps
> > > >
> > > > # *text* ps /usr/libexec/filters/ascii host=\%s{H} user=\%s{n}
> > > >
> > > > file_output_match = [
> > > > *postscript* ps \%s{ps_converter}
> > > > *pcl* pcl \%s{pcl_converter}
> > > > *pjl* pjl \%s{pjl_converter}
> > > >
> > >
> > > Use ZOPTS only, without the %s-stuff:
> > > *text* ps /usr/libexec/filters/ascii ZOPTS
> > > ^^^^^^^
> > >
> > > > *printer*job*language* pjl
> > > > *gzip_compressed* filter \%s{gzip_decompress}
> > > > ]
> > > >
> > >
> > > Works for me!
> > >
> > > BR /Johan
> > >
> > hmmm,
> >
> > not for me:
>
> Eh... sorry I was using an older version of ifhp...
>
> >
> > Filter_status: initial job type 'ascii_text' at 16:18:40.346
> > Filter_status: decoded job type 'POSTSCRIPT' at 16:18:40.346
> > Filter_status: job type 'POSTSCRIPT', converter
> > '/usr/libexec/filters/ascii ZOPTS' at 16:18:40.346
>
> > Filter_status: WARNING - 'ZOPTS' and 'TOPS' conversion options replaced
> > by {Z} and {T} - '/usr/libexec/filters/ascii ZOPTS' at 16:18:40.347
> ^^^ ^^^
> Ah! _|______|
>
> Filter_status: started CONVERTER- '/usr/libexec/filters/ascii ZOPTS' at
> > 16:18:40.367
> > Filter_status: converter done, output 13962 bytes at 16:18:40.499
> >
> > "/usr/libexec/filters/ascii Z" doesn't work either...
> >
> > Christoph
> >
>
> So try:
> *text* ps /usr/libexec/filters/ascii \%s{Z}
>
> Note: The option flag "-Z" itself will not be expanded by this
> only the value list, in your case "duplex". So try:
> *text* ps /usr/libexec/filters/ascii -Z\%s{Z}
>
> Patrick, I think the comments concerning ZOPTS & TOPTS,
> as well as ifhp itself needs some update...
>
> BR /Johan
> --
> Ericsson Network Core Products
> Unix Systems Management [EMAIL PROTECTED]
> Box 1505 Phone: +46 8 727 30 95
> S-125 25 �LVSJ�, Sweden Fax: +46 8 647 82 76
>
> -----------------------------------------------------------------------------
> 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.
> -----------------------------------------------------------------------------
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------