[Tutor] subprocess.Popen help

Alan Gauld alan.gauld at btinternet.com
Wed Jan 29 02:24:03 CET 2014


On 28/01/14 19:52, leam hall 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.

How do you do it outside of Python?
There is no great magic in Popen, it just reads/writes the
standard streams.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos



More information about the Tutor mailing list