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
Post a Comment