SourceForge.net
2009-04-22 17:56:53 UTC
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=7262957
By: bkamrani
Hi,
First thanks for nice piece of code!
Second, is it possible to create several child process OR just kill the last
child process(s) and start a new process by an script?
The reason for choosing a child process is that I want to have output from the
process visible (in the Console).
All I want to achieve is to:
- run a Python program and see the output in the console (for debugging purpose),
- next when I want to test the python program again after some eventual changes
are applied, can run it just by pressing one button (for example F6 or another
shortcut). The last process can be still running or just killed though by the
script.
What I currently do is that I have to kill the process manually before I can
start a new child process, but as I mentioned above I want to automate a bit
this process and do all steps by only one key press. But I can't make it.
Here is one of what I have tried so far.
npp_run taskkill /IM pythonw.exe (or cmd.exe)
cmd /k C:\MSC.Software\MD_Adams\R4_beta\python\win32\pythonw.exe -u
$(FULL_CURRENT_PATH)
Greatfull if somebody can help.
Thanks,
/Behnam
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=482781
https://sourceforge.net/forum/message.php?msg_id=7262957
By: bkamrani
Hi,
First thanks for nice piece of code!
Second, is it possible to create several child process OR just kill the last
child process(s) and start a new process by an script?
The reason for choosing a child process is that I want to have output from the
process visible (in the Console).
All I want to achieve is to:
- run a Python program and see the output in the console (for debugging purpose),
- next when I want to test the python program again after some eventual changes
are applied, can run it just by pressing one button (for example F6 or another
shortcut). The last process can be still running or just killed though by the
script.
What I currently do is that I have to kill the process manually before I can
start a new child process, but as I mentioned above I want to automate a bit
this process and do all steps by only one key press. But I can't make it.
Here is one of what I have tried so far.
npp_run taskkill /IM pythonw.exe (or cmd.exe)
cmd /k C:\MSC.Software\MD_Adams\R4_beta\python\win32\pythonw.exe -u
$(FULL_CURRENT_PATH)
Greatfull if somebody can help.
Thanks,
/Behnam
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=482781