[Tutor] subprocess.Popen help
Mkhanyisi Madlavana
mmadlavana at uh.edu
Wed Jan 29 07:04:18 CET 2014
On 28 January 2014 21:52, leam hall <leamhall at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140129/4dd56878/attachment.html>
More information about the Tutor
mailing list