I need to execute two other python scripts from another one.
commands look like this:
# python send.py
# python wait.py
This will happen in a loop that will sleep for 1 minute then re-run.
Before executing the commands to start the other scripts I need to make sure they are not still running.
You can use subprocess.Popen to do that, example:
if you need to retrieve the output do the following:
Example run: