NewBie Doubt in Python Thread Programming

vijay swaminathan swavijay at gmail.com
Thu May 12 05:42:39 EDT 2011


Hi Chris,

I tried using os.system as well but it did not even open up the command
prompt.

Can you please share the code that worked for you.. just wondering if I'm
missing something very basic.

Regards,
-Vijay Swaminathan.,

On Thu, May 12, 2011 at 1:38 PM, Chris Angelico <rosuav at gmail.com> wrote:

> On Thu, May 12, 2011 at 3:35 PM, vijay swaminathan <swavijay at gmail.com>
> wrote:
> > I tried using QThread as well.. But the problem is, on the run method
> when i
> > invoke the command prompt, it sends out the finished signal...  I want it
> to
> > send out the finished signal only on closing the command prompt that is
> > invoked earlier in my process.
>
> >         subprocess.call(["start", "/DC:\\PerfLocal_PAL",
> > "scripts_to_execute.bat"], shell=True)
>
> This is your problem, still. You need to change to a call that waits.
> In my testing on Windows (Python 2.6.5), this can be done with
> os.system() quite happily. Change that, and it should all work.
>
> Chris Angelico
> --
>  http://mail.python.org/mailman/listinfo/python-list
>



-- 
Vijay Swaminathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110512/6b538f8a/attachment.html>


More information about the Python-list mailing list