On 28 January 2014 21:52, leam hall <leamh...@gmail.com> wrote:

> Python tutorial for 2.6 (using 2.4 -- don't ask), first code blurb under
> 17.1.1
>
>
> http://docs.python.org/2.6/library/subprocess.html?highlight=subprocess#subprocess.Popen
>
> How would you make an ssh to another box put data back in "p"? The
> goal is to run a shell command on a remote box and work with the
> output on the local host.
>

Popen is not meant for that. You should try the paramiko library.
http://www.lag.net/paramiko/
http://jessenoller.com/blog/2009/02/05/ssh-programming-with-paramiko-completely-different

Cheers
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to