Hi,
I make some tests on newly installed ifhp-3.5.10 & LPRng-3.8.21 &
HP2200dtn
and find out 2 problems:
1. its over production of ifhp* files (hundreds !!) in /var/spool/lpd -
whith the same inhold:
===
....
-rw------- 1 daemon daemon 133 Aug 22 18:53 ifhp14WOjv
-rw------- 1 daemon daemon 133 Aug 22 18:55 ifhp14XOjv
-rw------- 1 daemon daemon 133 Aug 22 18:59 ifhp14YOjv
-rw------- 1 daemon daemon 133 Aug 22 19:06 ifhp14ZOjv
-rw------- 1 daemon daemon 133 Aug 22 20:49 ifhp14_Ojv
-rw------- 1 daemon daemon 133 Aug 22 17:16 ifhp14aOjv
-rw------- 1 daemon daemon 133 Aug 22 20:59 ifhp14aPjv
-rw------- 1 daemon daemon 133 Aug 22 17:18 ifhp14bOjv
-rw------- 1 daemon daemon 133 Aug 22 17:20 ifhp14cOjv
-rw------- 1 daemon daemon 133 Aug 22 17:22 ifhp14dOjv
-rw------- 1 daemon daemon 133 Aug 22 17:24 ifhp14eOjv
-rw------- 1 daemon daemon 133 Aug 22 17:26 ifhp14fOjv
-rw------- 1 daemon daemon 133 Aug 22 17:28 ifhp14gOjv
-rw------- 1 daemon daemon 133 Aug 22 17:30 ifhp14hOjv
-rw------- 1 daemon daemon 133 Aug 22 17:32 ifhp14iOjv
.....
chopin>cat ifhp14iOjv
%!PS-Adobe-3.0
/Courier
findfont 10 scalefont setfont
72 500 moveto
(No conversion available for type 'data') show
showpage
==============
2. filtering text files through a2ps doesn't work:
it seems that the right filter is being used, but it is not - text file is
not getting its "pretty"format, just raw text:
===
Filter_status: file program = '/usr/local/bin/file
dfA315chopin.imada.sdu.dk' at 15:50:56.858
Filter_status: started FILE_UTIL- 'file' at 15:50:56.897
Filter_status: file information = 'ascii_c_program_text' at 15:50:56.911
Filter_status: initial job type 'ascii_c_program_text' at 15:50:56.911
Filter_status: decoded job type 'POSTSCRIPT' at 15:50:56.912
Filter_status: job type 'POSTSCRIPT', converter '/usr/local/bin/a2ps -q
-B -1 -E -M A4 --borders=no -o- dfA315chopin.imada.sdu.dk' at 15:50:56.913
Filter_status: started CONVERTER- 'a2ps' at 15:50:57.037
Filter_status: converter done, output 14627 bytes at 15:50:57.048
Filter_status: transferring 14627 bytes at 15:50:57.050
Filter_status: 70 percent done at 15:50:57.050
Filter_status: 100 percent done at 15:50:57.051
Filter_status: sent job file at 15:50:57.051
Filter_status: getting end using 'pjl job/eoj' at 15:50:57.053
Filter_status: end of job detected at 15:51:25.970
Filter_status: pagecounter 76237 after 1 attempts at 15:51:26.400
Filter_status: pagecounter 76237, pages 2 at 15:51:26.401
Filter_status: done at 15:51:26.402
====
my printcap entry is:
====
.common:
:sd=/var/spool/lpd/%P
:sh:mx=0:mc=0
d3|datalogi3:\
:tc=.common:lp=d3%9100
:sd=/var/spool/lpd/d3:mx#0
:filter=/usr/local/libexec/filters/ifhp
:ifhp=model=hp2200,trace,debug=2,duplex,a4,copies=1
:send_try=1
:force_localhost
====
convertion type from ifhp.conf:
===
default_language=text
forceconversion
## UNIX File utility path
file_util_path= /usr/local/bin/file \%s{inputfile}
## Patterns and Converters
# example conversion program
file_output_match = [
*postscript* ps \%s{ps_converter}
*pdf* ps \%s{pdf2ps_converter}
*pcl* pcl \%s{pcl_converter}
*pjl* pjl \%s{pjl_converter}
*printer*job*language* pjl
*text* ps \%s{text_converter}
*gzip_compressed* filter \%s{gzip_decompress}
* msg no_converter
]
...
...
a2ps_options= -q -B -1 -E -M \%M{papersize} --borders=no -o-
a2ps_converter= /usr/local/bin/a2ps \%s{a2ps_options} \%s{inputfile}
pdf2ps_converter= /usr/local/bin/gs -dSAFER -dPARANOIDSAFER -dBATCH
-dNOPAUSE -q '\-sOutputFile=/dev/fd/3' 3>&1 1>&2 -sDEVICE=pswrite
\%{pdf2ps_options} -c save pop -\f \%s{inputfile}
ps_converter=
pcl_converter=
pjl_converter=
text_converter= \%s{a2ps_converter}
=====
Longina
--
Longina Przybyszewska, system programmer
Dept. of Math. & Comp. Sci. - IMADA
University of Southern Denmark, Odense
Campusvej 55,DK-5230 Odense M, Denmark
tel: +45 6550 2359 - http://www.imada.sdu.dk email: [EMAIL PROTECTED]
--
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------