LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 02-08-2002, 02:15 AM   #1
Debby
LQ Newbie
 
Registered: Feb 2002
Posts: 4

Rep: Reputation: 0
Exclamation 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.
 
Old 02-08-2002, 05:05 AM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
try lpc


for information try

man lpc
 
Old 02-08-2002, 03:17 PM   #3
ryanstrayer
Member
 
Registered: Jan 2002
Location: Kansas City
Distribution: RedHat 7.2 Kernel 2.4.17
Posts: 250

Rep: Reputation: 30
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
 
Old 02-08-2002, 07:54 PM   #4
Debby
LQ Newbie
 
Registered: Feb 2002
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 02-08-2002, 07:59 PM   #5
Debby
LQ Newbie
 
Registered: Feb 2002
Posts: 4

Original Poster
Rep: Reputation: 0
Lightbulb

Thanks Ryanstrayer

I will try to use CUPS !

Thank you very much !



Debby.
 
Old 02-08-2002, 08:52 PM   #6
ryanstrayer
Member
 
Registered: Jan 2002
Location: Kansas City
Distribution: RedHat 7.2 Kernel 2.4.17
Posts: 250

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check the status of NumLock & CapsLock in the keyboard prash.k Linux User Groups (LUG) 1 10-06-2005 03:40 PM
How to check Adaptec AIC7902B hostraid status / AIC7902B channel B question gschellens Red Hat 1 06-21-2005 01:55 AM
Check Non Continuous File Status (fragmentation)? carl0ski Mandriva 0 02-07-2005 08:34 AM
[asm] Status-Byte (printer) jb_li Programming 9 10-28-2003 03:59 PM
Check for status of Serial ports in any language? BongFish Programming 11 09-11-2003 01:46 AM


All times are GMT -5. The time now is 01:22 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration