> From [EMAIL PROTECTED] Sun Jun 25 16:43:38 2000
> Date: Sun, 25 Jun 2000 15:43:23 -0700 (PDT)
> To: [EMAIL PROTECTED]
> Subject: Re: LPRng: HP DeskJet 930C anyone?  How to determine capabilities?
> From: [EMAIL PROTECTED]
>
> from the quill of [EMAIL PROTECTED] on scroll
> <[EMAIL PROTECTED]>
> > 
> > Try:
> > 
> >   model=pcl,status@
>
> That works!  But in examining the ifhp.conf, doesn't "pcl" already set
> status@?
>
> This looks like a *really* dumb model (meaning a model for a really dumb
> printer).  What if my printer is actually smarter than that?  Any ideas
> on how to determine how much smarter than "really dumb" it is?

Actually,  the 'dumbness' comes from the fact that there is
no way to request status information using PCL,  so you might as
well not ask for it.

>
> All of this aside, I still suspect a bug in ifhp with regard to the:
>
> read from printer port for sync failed - Bad file descriptor at ...
>
> That suggest to me that at some point the device was opened write only
> and at another point a read from it was attempted.  The left hand does
> not know what the right hand is doing methinks.

Actually, the child does not know what the parent did.

>
> Thots?
>
> 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

The problem here is that LPRng did the open,  did a fork,
dup'ed the open file descriptor to FD 1,  and then did an exev of
the ifhp program.

At this point all the ifhp has available is the whimpy fcntl() call
to determine what facilities it can use.

Now if anybody knows a way to find out the allowed operations
(or if it was open READ/WRITE/ or APPEND) using some system calls,
please tell me.  Even if they are not portable,  I will put them
into the code base.

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)

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

Reply via email to