Hello monks

the situation: I am working for a company using a mainframe system (3270 sessions), and for some massive correction activities, we have a server (Windows) with several IBM personnal communication terminal emulator. These terminals are driven by Perl scripts using the OLE interface (solution equivalent to the one described in Interact with mainframe screen).

The problem is that we want to launch several scripts in parallel, each one using 2 or mores terminals.
We have a limited number of terminals, and to avoid having to select in each scripts which terminals to use, I am thinking about a way to dispatch on demand the terminals to scripts.

My idea is to write a perl script, running as daemon, which task would be to dispatch available session ID on demand, and be informed by scripts when sessions are not used anymore (thus returned to the pool of available sessions).

my questions are:

Thank you in advance for your help, and don't hesitate to help me improve my post/questions, as this is the first time I'm posting on perlmonks.
JeePj

In reply to Ressource dispatcher by jeepj

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.