Thanks a lot for the reply. What i am doing is a lpr queue. I have several hosts running WinLPD - an LPD alternative for Windows 98. On other hand I have two applications that are supposed to print jobs to the remote hosts (It is a point of sale system). The whole idea is to manage e bad queue for the jobs that are not going through. At the same time the issue is with the jobs going to hosts that are "alive". Looked around for a lpr queue but there is nothing freely available, which is why I decided to do this myself and then host it on Source Forge as a tool, as there is a need for Windows based LPR queue software that is free of charge.
I will have a look at Parallel::ForkManager and try and utilize it in the processing of the bad queue. The jobs in my case are very small text files (mainly customers slips). Which makes the processing of a single job very quick... except the case when the host on the other side is not responding and I need to retry this job until it becomes available. Using of threads makes the biggest sense for now.
The process that I am talking about looks like this:
<APPLICATION> -> <JOB_FILE> -> <QUEUE_PROCESSOR-LPR> -> <REMOTE_LPD_PRINTER>
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.