[Tutor] system()? popen2()? How to execute a command & save its output?
jjhartley at gmail.com
Thu Sep 30 06:29:59 CEST 2010
I'm needing to transfer the following shell construct to Python, plus save
the output of execution:
ftp -a $FTP_SITE <<EOF
Here, the FTP client accepts commands from STDIN, so all commands are saved
in a temporary file which is redirected to the client application.
I also need to save whatever output is generated. How can this be done in
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor