<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<div class="linestyle1 colourline" style="font-family: Consolas,
'Lucida Console', monospace; text-indent: -7px; padding-left: 7px;
word-wrap: break-word; color: rgb(0, 0, 0); font-size: 13px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-align: start; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; "><span><span
class="Apple-converted-space"></span>I launch bash commands
with python, and I do this remote invocations sending remote
messages to the rabbitmq. The messages get to the remote hosts,
and the commands are launched, but I am waiting for the return
of the invocation and it doesn't come back, althougt the remote
python method returns the result of the launched bash command. <br>
<br>
I am going to illustrate this:<br>
<br>
client sends message to remote host to run "myprogram.sh"<br>
def runList():<br>
result=executeCommand("</span><span><span>myprogram.sh</span>")<br>
print result<br>
<br>
the remote host has this method and receive the message from the
rabbitmq:<br>
def </span><span><span>executeCommand(command</span><span>)</span>:<br>
result=run bash command.<br>
return result<br>
<br>
Myprogram.sh takes 10 minutes to run, and sometimes the client
gets the response, sometimes doesn't. I don't understand why
sometimes it doesn't get the result.<br>
<br>
Is it correct to return the result of the remote invocation with
a simple "return result" in the remote method? Can I log the
messages that rabbitmq handle?<br>
</span></div>
<pre class="moz-signature" cols="72">--
Thanks,</pre>
</body>
</html>