LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
 
Search this Thread
Old 05-21-2010, 11:26 AM   #1
sang_froid
Member
 
Registered: Oct 2006
Posts: 179

Rep: Reputation: 15
lpr printing issue


Hi,

We are using lpr as a print server. What I want to do is, configure the lpd print server so that before it accepts any print job for some printer, it checks if the printer is available or not.

If the printer is available, then only it is supposed to accept print jobs...if not, it should not accept the print jobs at all.

How do I accomplish this feature ?
 
Old 05-21-2010, 11:46 AM   #2
fruttenboel
Member
 
Registered: Jul 2008
Location: Tilburg NL
Distribution: Slackware 14
Posts: 270

Rep: Reputation: 48
Quote:
Originally Posted by sang_froid View Post
Hi,

We are using lpr as a print server. What I want to do is, configure the lpd print server so that before it accepts any print job for some printer, it checks if the printer is available or not.

If the printer is available, then only it is supposed to accept print jobs...if not, it should not accept the print jobs at all.

How do I accomplish this feature ?
Get the source of LPRng and modify it.

If a printer is off line (which is identical to 'not there') the print job is spooled. That's the essence of Unix and Linux. What you are looking for is some kind of idiot proofing, but Unix was made for bright people. There already is an operating system dedicated to idiots. Made in USA.
 
Old 05-21-2010, 01:08 PM   #3
sang_froid
Member
 
Registered: Oct 2006
Posts: 179

Original Poster
Rep: Reputation: 15
If you don't have answer which is to the point, why do you abuse others ?

Did you fight with your wife today ?? Don't pour your personal anger to other people here in forum...


Quote:
Originally Posted by fruttenboel View Post
Get the source of LPRng and modify it.

If a printer is off line (which is identical to 'not there') the print job is spooled. That's the essence of Unix and Linux. What you are looking for is some kind of idiot proofing, but Unix was made for bright people. There already is an operating system dedicated to idiots. Made in USA.

Last edited by sang_froid; 05-21-2010 at 01:18 PM.
 
Old 05-21-2010, 02:31 PM   #4
fruttenboel
Member
 
Registered: Jul 2008
Location: Tilburg NL
Distribution: Slackware 14
Posts: 270

Rep: Reputation: 48
Quote:
Originally Posted by sang_froid View Post
If you don't have answer which is to the point, why do you abuse others ?
The answer was to the point. It may not have been the answer you were looking for, but that's a whole other story. Apparently you were looking for a solution that was ready made. Well, that answer does not exist for your case. It's against the idea of our operating system.

Quote:
Did you fight with your wife today ?? Don't pour your personal anger to other people here in forum...
You don't want to experience me when I am angry, believe me. Not even with 10.000 miles of internet between us.
By the way, who says I have a wife? I love a penguin...

Your problem was like this:

If there is no train in the station, how can I refuse potential passengers from entering the railway ticket office?

It's not the policy of railway companies to only allow passengers to enter the ticket office when there's a train at the platform, waiting for passengers. The railway company wants to make profit so it allows people to buy a ticket, thereby transforming them into passengers, all day long.

In your case, the station is your print server. The train is your printer. And the people are the print jobs. Just like the railway company is reluctant to refuse people from transforming into passengers when there is no train waiting idle, the print server is reluctant to refuse print jobs. It's not the policy of the print server to discriminate. It's the policy of the print server to accept print jobs and to deliver them when the printer is ready. It makes printing transparent. It will do the printing when the printer is ready.

If you have no printer attached, just kill the LPR deamon. Simple as that.

Last edited by fruttenboel; 05-21-2010 at 02:42 PM. Reason: forgot some words
 
1 members found this post helpful.
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
printing with lpr davidcollins001 Linux - Software 2 05-22-2009 11:34 AM
lpr printing - Etch JB009 Debian 4 09-28-2006 09:24 AM
printing last page first with lpr Furlinastis Slackware 3 02-17-2006 04:40 PM
LPR Printing is cut off LazyTux Linux - Newbie 1 10-20-2005 02:40 AM
printing through lpr from php Don Lag Programming 3 06-03-2003 12:15 PM


All times are GMT -5. The time now is 10:46 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration