def remote_command(client_ip, command):
 process_output = []
 d = run_ssh(reactor, 'ubuntu', client_ip, command, handle_stdout=process_output.append)
 d.addCallback((lambda process_result: (process_result, process_output)))
 return d

def remote_command ( client_ip , command ) : process_output = [ ] d = run_ssh ( reactor , 'ubuntu' , client_ip , command , handle_stdout = process_output . append ) d . addCallback ( ( lambda process_result : ( process_result , process_output ) ) ) return d
run command on client_ip .