I am running into following error when trying to run a command using Popen,what is wrong here?
cmd = "export COMMANDER_SERVER=commander.company.com" Pipe = Popen(cmd, stdout=PIPE, stderr=PIPE) (output, error) = Pipe.communicate() Error:-
Traceback (most recent call last): File "test_ectool.py", line 26, in <module> main() File "test_ectool.py", line 13, in main Pipe = Popen(cmd, stdout=PIPE, stderr=PIPE) File "/usr/lib/python2.7/subprocess.py", line 679, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
os.environ['COMMANDER_SERVER'] = 'commander.company.com'.