SSH, remote login, and command output

Sybren Stuvel sybrenUSE at YOURthirdtower.com.imagination
Sun Mar 26 13:20:17 CEST 2006


Spire 01 enlightened us with:
> So what I'd like to do is, from any given computer, log on to every
> other computer, run a certain command (which normally outputs text
> to the terminal), and store the output so I can use the aggregate
> statistics later in the program. 

I'd go for SSH indeed.

> I would normally something along the lines of SSH to do it, but I
> don't know what I would need to pull that off in Python.

Easiest way would be the popen2 module.

> There's also one complication: the systems could be Gentoo systems,
> or they could be logged into Windows since they're dual booted.

Then install Cygwin on the windows systems, and run the OpenSSH daemon
there too.

Sybren
-- 
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