reading data from /dev/lp0 error

reading data from /dev/lp0 error

Post by Johan den Boe » Fri, 11 Jul 2003 23:23:52



Hello,

I have a problem reading data from the parallel port /dev/lp0. I want to
read the status
from the printer. How do I do that. I have tried the read function call but
this gives me
an error 5.

regards

Johan den Boer

 
 
 

reading data from /dev/lp0 error

Post by Robert Synnot » Sat, 12 Jul 2003 08:35:01



> Hello,

> I have a problem reading data from the parallel port /dev/lp0. I want to
> read the status
> from the printer. How do I do that. I have tried the read function call but
> this gives me
> an error 5.

> regards

> Johan den Boer


You'll probably need details on how your specific printer likes to talk
to the computer. It might be worth checking the manufacturer's website
for a PDF version of their programmer's booklet, if they have one.
Alternatively, if you're using CUPS or similar, it might be possible to
get the info from that; the advantage there is that it's non-printer
dependant.
Bob.

 
 
 

1. ls > /dev/lp0 fails--but /dev/lp0 exists

I'm new to Linux.  I just loaded the Slackware distribution onto Swan 386SX,
386DX/25 and 486DX.  I have the same problem on all of them:

ls > /dev/lp0 gives:    
    bash: /dev/lp0: no such device.

ls -al /dev/lp0 gives:  
   crw-rw----  1  root  lp   6,  0  Nov 30 14:30  /dev/lp0

Nothing prints.  

All these machines print fine on lpt1: under DOS.  I've read the
print HOWTO and "Linux Installation and Getting Started."   On the 386SX,
uname -a gives:  
    Linux alinux 1.0 #9 Tue Mar 15 18:27:34 CST 1994  i386

I'd appreciate any help you can give.

2. Limiting WWW server throughput

3. Printing problem : ls > /dev/lp0 -- /dev/lp0 : No Such Device ?

4. SPX is public now???

5. Printtool not seeing my printer on /dev/lp0, /dev/lp1 or /dev/lp2

6. Need to Upgrade from 4.1.4 to 4.2

7. /dev/lp0 timeouts and "invalide error status"

8. Horrible response times over 14.4k PPP

9. /dev/lp0 error

10. /dev/lp0 nor /dev/lp1 getting detected

11. /dev/sequencer and /dev/lp0

12. How to fix - read error, I/O error dev 08:11 sector 999999

13. Reading data from /dev/modem