Originally posted by Debby
I already tried this command "lpc status" before, but it seems cannot check the Printer connect the com port or not ! also i tried if I unplug the printer cable, and then I continue to print the data to the printer, it still cannot saw any error, and print job would lost !
So do u think what problem is or can u give me any suggestion ?
Thank you very much !
Nothing on serial will tell you if the cable is actually talking to the printer, if that's what you're after. The only thing that will come close to that is if you have a new printer capable of IEEE specs on a regular parallel port. Then the kernel will usually detect what type of printer you have on the port, which is a good indication that it's communicating with the printer.
But serial, you will not find anything like that, to my knowledge, unless somebody knows something I don't, which very well could be. You can verify you're serial port is setup by typing 'dmesg' at the command prompt and verifying what you see there. You also may need to setup your serial port with the 'setserial' command. I'm not sure what kind of printer you have, but from what I remember about working with them in the old days, they were pretty picky about settings (hardware flow, baud rate, etc).
You also should be able to send raw text to the device by typing 'ls > /dev/ttySx' x=the serial port number .. ususally 1. If you can't at least do that, it's probably not going to work through lpr.
Hope that gives you some helpful tips.