Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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....
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.