Ok, i will be a more descriptive this time ...

Say my application name is test.exe.
To run the application i use input1.tcl.

When i run the application individually using tcl , I can see from task manager of windows that test.exe is running and once my tcl completes , the .exe file is killed.

This input1.tcl also contains typeperf command running in background as mentioned below. Once the TCL is run . i kill the typeperf forcibly using "exec TASKKILL typeperf.exe" written at the end of input1.tcl.

Now i have multiple such TCL's which i have run on same test.exe. I am writing something like below :-
foreach $tcl (list_of_tcls)
{
system ("test.exe", "TCL:$tcl" );
}
What this is doing is that i invokes a new process for test.exe on every iteration. Once the tcl is complete , it automatically terminate the test.exe.
But after few iterations , i can see that test.exe has begun to run , but it is not completing its execution. test.exe just sits there (this is what i meant by hang).
I forcibly kill the process from task manager , and then the perl again starts the scripts from last iteration.

In reply to Re^4: SYSTEM Call of PERL hangs application when running a TCL script by kalama
in thread SYSTEM Call of PERL hangs application when running a TCL script by kalama

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.