Suppose I run a command cmd="start python Testscript.py"
using subprocess in python.
subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
- Is there any way to get the output of the new command console ?
- Is there any way to get the return code from the TestScript.py into the calling python function.