I'm trying to follow the info I can find about subprocess.Popen as I want to make a linux command line call.. I am trying as below but am getting the error "[Errno 2] No such file or directory". I'm not trying to open a file so I don't understand this error, and it works fine (although with other issues relating to waiting for the process to finish when I don't want it to) when I use a regular os.popen.
I can't seem to figure out how to do this properly, any advice is appreciated.
EDIT: THE COMMAND I AM USING IS COMPLEX AND VARIABLIZED, it would be too out-of-context to include it here, I think its suffice to say that the code works when I use os.popen
and not when I do the new way, so no, the "linux command line call" is obviously not the call I am using
subprocess.Popen([r"linux command line call"])
>>> [Errno 2] No such file or directory