prompt() is False while using pxssh

101 views Asked by At

I am using Python 2.7, please let me know how can I resolve this issue. part of code:

     try:
        s = pxssh.pxssh()
        s.login(hostIP,userID,userPW)
        s.prompt()
        print " prompt value .. = ",s.prompt()
        s.logout
     except pxssh.ExceptionPxssh as e:
         print("pxssh failed on login.")
         print(e)

output from above is prompt value .. = False; How can I make it True

0

There are 0 answers