I'm considering giving up on the print filters we use here and I'm
trying to swap to ifhp.
One of the things ifhp needs to be able to do is to convert anything
into anything. I have put a line in file_output_match to send jpeg
images to a jpgtops filter. If I run ifhp by hand it correctly converts
it. But if I send the job to the lpd it just spews out the jpeg file
straight and never seems to try converting it. I have tried both
forceconversion and forceconversion@ since the documentation doesn't
seem clear to me which way I should set it. I have tried putting ifhp
as the of=, the if=, the df=, and the filter=, but to no avail. I have
set an ifhp=model= several different ways, and none of them seem to have
any effect.
The print filter we use here takes care of accounting for us, and I'm
baffled by the way LPRng/ifhp seem to do it. Our print filter queries
the printer for the pagecount, then prints, then queries again, and
records a single line of accounting information. LPRng/lpd seems to do
all kinds of weird things and makes 4 lines per printjob in order to
keep track of things. Is there any reasonable way to tell ifhp to just
output one line at the end of a job?
Lastly, a question for Dr. Powell himself, since he is a doctor. When I
last walked to the printer to hit the cancel button on a failed job, I
kicked a chair with my foot. I don't normally wear shoes to work, and
after kicking the chair one of my toes (thankfully one of the
unimportant ones) was sticking out sideways. I bent it back forward,
and promptly left for lunch. Is there anything, in your doctorly
opinion, that I should do? :)
----- ifhp.conf ----
statusfile_max=8
statusfile_min=2
pjl@
pcl@
ps
text@
pcl_eoj_at_start
ps_eoj_at_start
status
sync
sync_interval=20
pagecount
pagecount_interval=20
waitend
end_ctrl_t=busy:idle
waitend_interval=300
waitend_ctrl_t_interval=3
progress_pc=25
progress_k=1000
ps_status_code=
%!PS-Adobe-2.0
( %%[ echo: NAME ]%% ) print () = flush
ps_pagecount_code=
%!PS-Adobe-2.0
/p{print}def ( %%[ pagecount: ) p
statusdict begin pagecount end 20 string cvs p
( ]%% ) p () = flush
ps_fontdir=/fs/lprng/libexec/filters/fonts/ps
ps_font=[ font_download ]
ps_source=[ \%s{source} ]
ps_outbin=[ \%s{outbin} ]
ps_paper=[ \%s{paper} ]
ps_papersize=[ \%s{papersize} ]
ps_pagesize=[ \%s{pagesize} ]
ps_duplex= statusdict begin true setduplexmode false settumble end
ps_lduplex=[ duplex ]
ps_duplexshort= statusdict begin true setduplexmode true settumble end
ps_sduplex=[ duplexshort ]
ps_simplex= statusdict begin false setduplexmode end
ps_inupper= statusdict begin 0 setpapertray end
ps_inlower= statusdict begin 1 setpapertray end
ps_manual= statusdict begin /manualfeed true store end
ps_envelope= statusdict begin com10envelopetray end
ps_outupper= statusdict begin 0 setoutputtray end
ps_outlower= statusdict begin 1 setoutputtray end
ps_transparency= <</MediaType (Transparency)>> setpagedevice
ps_tumble= statusdict begin true settumble end
ps_shortedge=[ tumble ]
ps_a0=
ps_a1=
ps_a2=
ps_a3=
ps_a4=
ps_letter=
ps_ledger=
ps_11x17=[ ledger ]
ps_tabloid=[ ledger ]
ps_executive=
ps_oversize=
mediaselect=3
ps_mediaselect=<</DeferredMediaSelection true /MediaPosition \%d{mediaselect}>>
setpagedevice
ps_user_opts=[
11x17 a0 a1 a2 a3 a4 a5 duplex duplexshort envelope executive
font inlower inupper lduplex ledger legal letter manual mediaselect
outlower outupper oversize sduplex simplex tabloid transparency
# we use this for fonts
font
]
default_language=text
forceconversion@
file_util_path= /usr/ucb/file -
file_output_match = [
*jpeg* ps /lprng/bin/jpgtops
*tex_dvi* ps /lprng/bin/dvipsfilt
*postscript* ps \%s{ps_converter}
*pcl* pcl \%s{pcl_converter}
*pjl* pjl \%s{pjl_converter}
*printer*job*language* pjl
*text* pcl \%s{text_converter}
]
ps_converter=
pcl_converter=
pjl_converter=
text_converter=
----- cut here -----
----- lpd_printcap -----
print-test
:cm=hp8100DN [duplex, tabloid]
:[EMAIL PROTECTED]
print-test
:lp=print-test.tcct.nmt.edu%9100
:rw
:if=/lprng/libexec/filters/ifhp
:df=/lprng/libexec/filters/ifhp
:tf=/lprng/libexec/filters/ifhp
:sf
:sd=/lprng/spool/print-test
:af=/lprng/test-acct.log
:lf=/lprng/log/print-test
:ar@
:la
:as=eeepstart $H $n $P $k $b $t $J
:ae=eeepend $H $n $P $k $b $t $J
----- cuit here -----
--
William Colburn, "Sysprog" <[EMAIL PROTECTED]>
Computer Center, New Mexico Institute of Mining and Technology
http://www.nmt.edu/tcc/ http://www.nmt.edu/~wcolburn
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------