Terminate a python script from another python script
Posted
by Nick
on Stack Overflow
See other posts from Stack Overflow
or by Nick
Published on 2010-06-16T15:29:21Z
Indexed on
2010/06/16
15:32 UTC
Read the original article
Hit count: 408
I've got a long running python script that I want to be able to end from another python script. Ideally what I'm looking for is some way of setting a process ID to the first script and being able to see if it is running or not via that ID from the second. Additionally, I'd like to be able to terminate that long running process.
Any cool shortcuts exist to make this happen?
© Stack Overflow or respective owner