I&#39;m trying to write a plug in that starts database server on on of the nodes of my cluster.<br><br>However, a line like this in my plugin:<br><br>       connection.execute(&#39;commands to start the DB&#39;)<br><br>wont&#39; work because the command to start the DB process doesn&#39;t return  -- not until the DB is killed -- so since connection.execute blocks, this never returns, and the rest of the execution of the plugin hangs.<br>
<br>The same thing happens when I try to run the process in teh background, e.g.<br><br>    connection.execute(&#39;commands to start the DB &amp;&#39;)<br><br>Fundamentally this is because paramiko.channel.exec_commands blocks.<br>
<br><br>What I should do?  <br>