LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Check Printer Status (https://www.linuxquestions.org/questions/linux-general-1/check-printer-status-13806/)

Debby 02-08-2002 02:15 AM

Check Printer Status
 
Help ! Help ! Help !

I am the beginner for using the Linux, I have connected the serial port printer to my Linux Server, and also I can printing on this printer, but I want to know how can I check the printer turn on or off, or did the printer connect to the com port or not ?

Anybody can tell me Linux has the functions or command to this signal or not ?


Thank you for your help !


Debby.

DavidPhillips 02-08-2002 05:05 AM

try lpc


for information try

man lpc

ryanstrayer 02-08-2002 03:17 PM

I don't want to confuse you or anything - but I personally recommand CUPS, which is alot more easier to use and is administable via a web browser.

CUPS stands for Common Unix Printing System, and is meant to be a replacement to the old '70's lpr system. It is a lot more secure as well compared to the lpr daemon.

More info can be found at: http://www.cups.org

Debby 02-08-2002 07:54 PM

Thanks DavidPhilips,


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 !


Debby.

Debby 02-08-2002 07:59 PM

Thanks Ryanstrayer

I will try to use CUPS !

Thank you very much !



Debby.

ryanstrayer 02-08-2002 08:52 PM

Quote:

Originally posted by Debby
Thanks DavidPhilips,


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 !


Debby.

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


All times are GMT -5. The time now is 09:32 PM.