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

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -