In article <>,
 mennis <> wrote:

> Here I have a simple multiprocessing class that when initializes takes a 
> connected SSHClient instance and a command to run on the associated host in a 
> new channel.

ChrisA has already answered your question, but to answer the question 
you didn't ask, you probably want to ditch working directly with 
paramiko and take a look at fabric (  It layers 
a really nice interface on top of paramiko.  Instead of gobs of 
low-level paramiko code, you just do something like:

from fabric.api import env, run
env.host_string = ""
output = run("my command")

and you're done.

Reply via email to