LinuxQuestions.org
Review your favorite Linux distribution.
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
  Search this Thread
Old 08-22-2010, 02:06 PM   #1
pkbobo@yahoo.com
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Rep: Reputation: 0
Managing print jobs thru printer queue


my ERP is sending multiple xml files to my queue and printing daemon reads each files and send it to windows printer (queue) where another software that uses each file and prints one document at a time.

I would like to control first part when ERP send XML file I would like printing daemon to send files to windows queue in order the files came in from ERP.

Currently it send it in random order. (i think it's based on how fast it can process, size of file..ect)

I am not expert in Linux but I am sure someone here can help.
 
Old 08-22-2010, 05:18 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,115

Rep: Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451
Quote:
Originally Posted by pkbobo@yahoo.com View Post
my ERP is sending multiple xml files to my queue and printing daemon reads each files and send it to windows printer (queue) where another software that uses each file and prints one document at a time.

I would like to control first part when ERP send XML file I would like printing daemon to send files to windows queue in order the files came in from ERP.

Currently it send it in random order. (i think it's based on how fast it can process, size of file..ect)

I am not expert in Linux but I am sure someone here can help.
How about some actual details here??

WHAT ERP?? What kind of linux? (Version/distro)? What printing daemon? And you're right, it *CAN* send them in order...but you'll have to write custom code to do it. If it's sending files over the network, then obviously the smaller ones will transfer quicker, which means they'll reach the print queue first, which means they'll PRINT first.

Also...how, exactly, is Linux supposed to tell which jobs are in a batch?? If someone submits a 17 page job, and then someone else submits ONE page...then that job will be job #18, regardless. No way of knowing which belong with which....

Last edited by TB0ne; 08-22-2010 at 07:24 PM.
 
Old 08-22-2010, 11:48 PM   #3
pkbobo@yahoo.com
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you for your reply.

We are using Glovia 9.1.2 as ERP system runs on Red hat 4.0

We have wrote custom code in Glovia that creates single xml file for each document that print daemon reads to know which windows print queue it needs to send. All servers are on LAN so Size may be effecting.

Linux shouldn't care what batch it's coming from. I just want it to process files in order they being created from ERP.

what kind of custom code I have to write to control it?
 
Old 08-23-2010, 09:32 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,115

Rep: Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451
Quote:
Originally Posted by pkbobo@yahoo.com View Post
Thank you for your reply.

We are using Glovia 9.1.2 as ERP system runs on Red hat 4.0
Since Glovia and RHEL are both commercially supported products, have you contacted your vendors, since you're paying for support?
Quote:
We have wrote custom code in Glovia that creates single xml file for each document that print daemon reads to know which windows print queue it needs to send. All servers are on LAN so Size may be effecting.

Linux shouldn't care what batch it's coming from. I just want it to process files in order they being created from ERP.

what kind of custom code I have to write to control it?
Linux DOESN'T care, and that's the point you're missing. Again, bigger files take longer to transfer. A queue sends things along, no matter what size. You'd have to write code make sure all jobs are submitted to the queue, in a paused state, then un-pause them one at a time, so they're processed in order. You can either do it through CRON, or have the process sleep and loop through, getting job lists and processing them.
 
Old 08-24-2010, 10:33 AM   #5
pkbobo@yahoo.com
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Can you give me example of how to submit in pause status and release?
 
Old 08-24-2010, 11:52 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,115

Rep: Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451
Quote:
Originally Posted by pkbobo@yahoo.com View Post
Can you give me example of how to submit in pause status and release?
Read the man pages on lp. You can submit a job in a HOLD state. Again, since your ERP software is submitting the job it will have to be custom-coded to do this, and you will then have to write code on the Linux box to release the jobs one at a time.
 
  


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
remote printer jobs stuck in queue bhert Linux - Server 24 04-12-2008 09:04 AM
Brother HL2070N network printer installed, print jobs stuck in printer que jgz Linux - Networking 0 02-14-2008 10:54 PM
Print jobs repeat infinetly on lpd printer attached to axis print server linux-who? Linux - Hardware 0 03-28-2006 11:24 AM
Where printer stores queue jobs? mikeshn Linux - Hardware 3 12-19-2003 07:44 AM
Does anyone know how to queue print jobs? Makystir Linux - Software 3 11-05-2003 05:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:54 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
Open Source Consulting | Domain Registration