server - Executing remote command using PXSSH in Python -


i trying make python script remotely start upgrade procesure of program located on server. upgrade procedure starts, not finish. acctually exits after start.
here code:

import pxssh w=pxssh.pxssh() w.login('15.24.22.10','root','pass') w.sendline('cd /home/incoming/') w.prompt() w.sendline('./upgrade') w.prompt() w.wait() 

any appreciated.


Comments

Popular posts from this blog

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -