I am using subprocess.Popen
to control programs in a tasks scheduler.
The code I am using to open programs is:
subprocess.Popen("python " + filename + ".py")
The problem I am facing is this (I am using Python):
When I run my taskscheduler from the Python IDLE, everything runs as expected. However, when I run the task scheduler from the command line, The programs that open actually run in the same "shell" or command window as the task scheduler itself.
I don't want this to happen. I have played with the shell=True
command, but I haven't gotten it to work yet. Any ideas?