I'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('commands to start the DB')<br><br>wont' work because the command to start the DB process doesn'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('commands to start the DB &')<br><br>Fundamentally this is because paramiko.channel.exec_commands blocks.<br>
<br><br>What I should do? <br>