To run a python script in all the machines from one server

Sybren Stuvel sybrenUSE at
Tue Mar 28 13:59:45 CEST 2006

Nick Craig-Wood enlightened us with:
> If these are unix machines then I would use ssh/scp.
> Use scp to copy the script to /tmp then run it and collect the output
> with ssh (and os.popen/subprocess)

I'd use ssh only. Just give a 'cat > /tmp/' command, then
output the contents of the script, followed by CTRL+D. That also
enables you to get the output directly (by giving the result of the
script on stdout) instead of having to create an FTP server too.

The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa

More information about the Python-list mailing list