Re: [Tutor] ssh from Windows to a Solaris server

2012-02-20 Thread Steven D'Aprano
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

Re: [Tutor] ssh from Windows to a Solaris server

2012-02-20 Thread Alan Gauld
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

Re: [Tutor] ssh from Windows to a Solaris server

2012-02-20 Thread Evert Rol
> 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