LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   LPR question (https://www.linuxquestions.org/questions/programming-9/lpr-question-861670/)

HyperTrey 02-09-2011 01:39 PM

LPR question
 
I am trying to write a BASH script that will help people print on Linux Servers (CentOS). I am asking the file in the script.

We use a print server That have specific named print queue/ports. The syntax I am using is:

lpr -H at-test.college.edu:Test-BWQ -U test test.doc

and I get a "lpr : Error - Scheduler is not responding!". What dit I do wrong?

[Examples used:]
Server: at-test.college.edu
Port/queues: Test-BWQ
user: test

Tinkster 02-09-2011 05:24 PM

Is CUPS actually running?

HyperTrey 02-10-2011 08:44 AM

to be honest, I do not know how to check.

HyperTrey 02-10-2011 08:54 AM

Quote:

Originally Posted by HyperTrey (Post 4254146)
to be honest, I do not know how to check.


Check that, I figured out how to check. lpstat -r show that the scheduler is running. And I still can't print with command. Did I get the syntax right?

Tinkster 02-10-2011 10:14 AM

And can you post the output of lpstat -t?

HyperTrey 02-10-2011 11:45 AM

lpstat -t
scheduler is running
no system default destination
lpstat: No destinations added.
lpstat: No destinations added.
lpstat: No destinations added.
lpstat: No destinations added.


How ever I assumed that with: lpr -H at-test.college.edu:Test-BWQ -U test test.doc that the destination was the printer attached to the print server at port Test-BWQ.

paulsm4 02-10-2011 12:10 PM

Hi -

First verify that CUPS is installed (it sounds like it probably is):
Quote:

rpm -qa |grep -i cpus
Second, see if you can configure one or more printers from the GUI:
Chap 33: Printer Configuration

'Hope that helps

HyperTrey 02-10-2011 12:32 PM

ok, so there is no way to print to a server without installing a printer first? (was trying to make it easy for the linux server guys without having to manage printers on their server too

Tinkster 02-10-2011 01:22 PM

Quote:

Originally Posted by HyperTrey (Post 4254340)
ok, so there is no way to print to a server without installing a printer first? (was trying to make it easy for the linux server guys without having to manage printers on their server too

You answered your own question; w/o a defined queue and printer
printing via CUPS is not possible.



Cheers,
Tink


All times are GMT -5. The time now is 08:01 PM.