Alan Gauld wrote:
On 20/02/12 21:17, Do Nguyen (donguye) wrote:
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 trea
On 20/02/12 21:17, Do Nguyen (donguye) wrote:
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
> 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 successfull