from the quill of [EMAIL PROTECTED] on scroll <[EMAIL PROTECTED]>
>
> Just treat it like a standard PCL printer and pray.
Tried that already. :-) Default configuration does not seem to work.
I get these kinds of errors with an "out of the box" configuration which
I believe defaults to a LJ4 right?
using model 'DEFAULT' at 19:47:25.410
pagecount using 'pjl info pagecount' at 19:47:25.423
setting up printer at 19:47:25.423
getting sync using 'pjl echo' at 19:47:25.424
read from printer port for sync failed - Bad file descriptor at 19:47:25.424
no response from printer at 19:47:25.424
I think the EBADF is because the port is being opened for write only and
then being read from. An strace of ifhp will confirm this. More on this
below...
> It should handle PCL OK.
I think I recalled reading that it was PCL3 only though. :-(
> You may have problems with downloaded fonts,
> but it should handle the standard ones OK.
Downloading fonts is not really an issue at this point, just getting it
to print is. I can get it to print with my own (very dumb) filter. It
just seems to be ifhp that is having troubles. I would like to isolate
ifhp from lprng so I can test easily using a debugger and tools like
ltrace/strace. Any hints on how best to do that? Would something as
simple as:
strace -o /tmp/blat -f /usr/libexec/filters/ifhp [ args ] </dev/lp0 >/dev/lp0
do it? Or should I go for something a bit more (complicated) like:
#!/bin/sh
exec 1>/dev/lp0 0</dev/lp0
strace -o /tmp/blat -f /usr/libexec/filters/ifhp
Or can you suggest something better to determine why the EBADF?
Thanx,
b.
--
Brian J. Murrell InterLinx Support Services, Inc.
North Vancouver, B.C. 604 983 UNIX
Platform and Brand Independent UNIX Support - R3.2 - R4 - BSD
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------