I'm a newbie in python programming ...
I wrote the followings to ssh from Windows to a Solaris server:
command1 = "plink -ssh -pw myPassword myUserName@myServerIP"
p1 = subprocess.Popen(command1)
p2 = subprocess.Popen('ls')
I could verify that command1 was executed successfully, ie. the ssh to
myServer worked, but command2 was treated locally in the Windows and was
not executed on the server. The error was as follows:
Traceback (most recent call last):
File "C:\Python32\ProgramFiles\test-paramiko.py", line 42, in <module>
p2 = subprocess.Popen('ls')
File "C:\Python32\lib\subprocess.py", line 741, in __init__
restore_signals, start_new_session)
File "C:\Python32\lib\subprocess.py", line 960, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
Any hint ? I am using python 3.2 and did try to install paramiko but
could not make it works.
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor