<div>Hi Chris,</div>
<div> </div>
<div>I tried using os.system as well but it did not even open up the command prompt. </div>
<div> </div>
<div>Can you please share the code that worked for you.. just wondering if I'm missing something very basic.</div>
<div> </div>
<div>Regards,</div>
<div>-Vijay Swaminathan.,<br><br></div>
<div class="gmail_quote">On Thu, May 12, 2011 at 1:38 PM, Chris Angelico <span dir="ltr"><<a href="mailto:rosuav@gmail.com">rosuav@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">On Thu, May 12, 2011 at 3:35 PM, vijay swaminathan <<a href="mailto:swavijay@gmail.com">swavijay@gmail.com</a>> wrote:<br>> I tried using QThread as well.. But the problem is, on the run method when i<br>
> invoke the command prompt, it sends out the finished signal...  I want it to<br>> send out the finished signal only on closing the command prompt that is<br>> invoked earlier in my process.<br><br></div>
<div class="im">>         subprocess.call(["start", "/DC:\\PerfLocal_PAL",<br>> "scripts_to_execute.bat"], shell=True)<br><br></div>This is your problem, still. You need to change to a call that waits.<br>
In my testing on Windows (Python 2.6.5), this can be done with<br>os.system() quite happily. Change that, and it should all work.<br><br>Chris Angelico<br><font color="#888888">--<br></font>
<div>
<div></div>
<div class="h5"><a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Vijay Swaminathan<br>