[Tutor] Running subProcesses in parallel for mixed external Windows.exe and Python functions on specified CPUs.

2009-05-01 Thread Ian Campbell
Running subProcesses in parallel for mixed external Windows.exe and Python functions on specified CPUs. How does a newbie start to make this work? def startMyFiles():(not real code, this is only for explaining my problem) import OS import time import sys import subprocess from

[Tutor] # what do I do now to kill the the Windows program which has finished its work?

2009-04-25 Thread Ian Campbell
I am converting a Windows ProComm script into Python and need help. ; previous Procomm script here run c:\buy.exe taskId; this runs the c:\buy.exe program and assigns the task identification number to the integer variable called taskId pause 1

[Tutor] I may have solved my problem with killing tasks in Windows

2009-04-25 Thread Ian Campbell
I am trying to use this so maybe no one has to reply... sorry to inconvenience anyone. I got it from Google but did not copy his name and cannot give my thanks to original author, sorry. import subprocess from win32event import WaitForSingleObject, WAIT_TIMEOUT from win32api import