LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 03-17-2006, 08:54 PM   #1
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,506

Rep: Reputation: 116Reputation: 116
CUPS Print Queue Manager for Print Server


I've found that what I'm looking for here is very hard to google for, because I'm not sure of a term for it, so even helping to narrow down my keywords would be much appreciated.

I'd like to implement (either from software available, or on my own) some sort of system that will allow me to manage print jobs sent to a print server. I'm setting up this print server for a small conference which will have a computer lab, and I'd like whoever is working there to be able to see the print jobs submitted from Windows client machines and approve each of them. Ideally, I'd be able to get the hostname, filename, and number of pages for each job and provide a "Print" and "Cancel" button. This will reduce our paper and toner usage and waste.

I am a computer science major and the conference is a full 8 months away, so I'm not afraid of implementing something myself if anyone has any ideas on where to begin. The server will be running CUPS for printing, of course. I guess I need to get in right between the printer drivers in CUPS and the printer itself.
 
Old 03-20-2006, 02:10 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 12.04, Fedora 17, Mint 16, Chakra
Posts: 3,618

Rep: Reputation: Disabled
Umm, maybe I misunderstand this. If you use a box with KDE, it already has a built in queue manager with all these features ... or do you want to enable Windows to manage the printserver queue?
 
Old 03-20-2006, 09:24 PM   #3
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,506

Original Poster
Rep: Reputation: 116Reputation: 116
Perhaps I just don't see the option in KDE, but I need the queue manager to be able to (by default) hold on to print jobs until they are approved.
 
Old 03-21-2006, 01:02 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 12.04, Fedora 17, Mint 16, Chakra
Posts: 3,618

Rep: Reputation: Disabled
Oh, I see. Can't you set the queue to "hold" the jobs by itself? I seem to remember that there are commands to directly modify the behaviour of queues (doing this from memory, have no system here).
 
Old 11-14-2006, 07:26 AM   #5
garyamort
LQ Newbie
 
Registered: Nov 2006
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by Matir
I am a computer science major and the conference is a full 8 months away, so I'm not afraid of implementing something myself if anyone has any ideas on where to begin. The server will be running CUPS for printing, of course. I guess I need to get in right between the printer drivers in CUPS and the printer itself.
Not sure how you did, but I ran across your question while researching this option myself for my own use.

What I did is used the GUI tool to add an option for the printer(choose the job-hold-untill option, and after adding it choose indefinite as the time frame)

Than when CUPS added the printer, it placed the following in the /etc/cups/printers.conf file for it:
"Option job-hold-until indefinite"

Now any jobs submitted to cups get held indefinitely.

CUPS has it's own management screen, so you can view the jobs in the queue, cancel them, release them, or move them to another printer.

It does not, however, show the number of pages.

However, I did find that when using it as a Postscript printer, it is possible to use Ghostscripts PS to PDF function to convert it to a PDF. So I'm looking to add a small script that can be called over the web, will grab the job id, find the print spool file, run the conversion and then send the PDF file back to the user.

That way the 'print manager' is able to preview the print jobs before accepting them.

Sorry this is so late and probably of no help to you, but I figured if someone else runs across your post as I did they would be interested.
 
Old 02-09-2007, 12:46 PM   #6
big_raji
LQ Newbie
 
Registered: Feb 2007
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by garyamort
Not sure how you did, but I ran across your question while researching this option myself for my own use.

However, I did find that when using it as a Postscript printer, it is possible to use Ghostscripts PS to PDF function to convert it to a PDF. So I'm looking to add a small script that can be called over the web, will grab the job id, find the print spool file, run the conversion and then send the PDF file back to the user.

That way the 'print manager' is able to preview the print jobs before accepting them.
I also came across this thread, since I'm looking to do exactly what you described. Thanks for the tip. Did you have any success with your script for PS -> PDF -> Approval?
 
Old 09-18-2008, 04:34 PM   #7
mohtasham1983
Member
 
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408

Rep: Reputation: 30
It might be a little bit late, but I was looking for the same thing for my specific web application with a billing system.

I did this last year. All you have to do is to add "Option job-hold-until indefinite" to /etc/cups/printer.conf inside your printer configuration file to hold all print jobs it receives by default.

Then install pkpgcounter. Using this program, you can calculated the number of pages for each print job.

The print jobs are located in /var/spool/cups/ in Debian. In my case each print job starts with letter "c" followed by print job ID.


For example, the following command returns the number of pages for the print job with ID=6854.
Code:
pkpgcounter /var/spool/cups/c06854
Then you can simply release your print job by issuing the following command:

Code:
sudo lp -i <printjob> -H resume
If you want to be green, and if your printer supports back to back printing mechanism, you can use the following command to release your print job:

Code:
sudo lp -o sides=two-sided-long-edge -i <printjob> -H resume
I hope it can help someone.
 
Old 09-19-2008, 02:01 AM   #8
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 12.04, Fedora 17, Mint 16, Chakra
Posts: 3,618

Rep: Reputation: Disabled
Thanks for coming back to this old thread with a solution. That's what makes LQ a repository of knowledge.
 
Old 01-11-2009, 01:55 AM   #9
auburn
LQ Newbie
 
Registered: May 2003
Location: Brooklyn, NY
Distribution: Mandrake 9.1
Posts: 9

Rep: Reputation: 0
These are "print release station" functions and I also found this thread very helpful. I'm currently running edubuntu with 15 thin clients. One of my thin clients is a print release monitor/manager which I've created by making it fire up firefox when it boots and setting the default homepage to localhost:631/jobs/. I also use a few firefox addons to force firefox to completely fill the screen with no toolbars and refresh every 3 seconds. I have not tried "Option job-hold-until indefinite" but that's exactly what I'm looking for to convert my monitor into a true "print release station". I am also trying to use the same cups server as a queue for winxp and osx workstations. I *believe* I may be able to install this queue on winxp as a tcp/ip (aka internet) printer and manage windows print jobs with cups too. (Scroll down to windowsXP client machine.) Here is someone who seems to have accomplished all this. Btw, I've also heard that pykota can help with getting page counts.
 
Old 01-11-2009, 04:32 AM   #10
mohtasham1983
Member
 
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408

Rep: Reputation: 30
I think Pykota uses pkpgcounter, too.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CUPS Queue won't print johnny1959 Linux - Newbie 10 08-08-2009 11:48 PM
gnome print manager dosn't see valid printer queue Simon Bridge Linux - Software 4 05-23-2005 05:01 AM
Permissions for manipulating CUPS print queue PC_Pixel Linux - Security 1 04-13-2005 11:34 AM
OfficeJet G85, CUPS Web based Admin test print works, lpr/lp dose not. ptal-print OK. NLR Linux - Hardware 2 09-20-2004 02:59 PM
Can't select Parellel printer with Cups Admin or KDE Print Manager EnigmaX Linux - Newbie 6 08-16-2004 08:29 PM


All times are GMT -5. The time now is 02:22 PM.

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