I am running python commands on solaris environment. I am not able to execute subprocess.call on it as it gives me an error in execute_child “[Errno 2] No such file or directory”. I tried alternative ways using popen2/3/4 but it throws an error “DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.” I dont want to use os.system as because of some limitations. Is there some other way to make this work?
Any help will be appreciated.
I am running python commands on solaris environment. I am not able to execute
Share
Have you tried
subprocess.popen()? It’s as simple as:It replaces
popen2(), which is indeed deprecated:Regarding the
No such file or directoryerror, try using absolute path.