Android Question Library jkSSH2 and command "sudo halt"

Discussion in 'Android Questions' started by AlpVir, Nov 30, 2015.

  1. AlpVir

    AlpVir Well-Known Member Licensed User

    I use the library jkSSH2 with a Raspberry. Everything OK except the fact that I can not run the command
    SSH2.execCommand("sudo halt",  10)
    Probably due to the immediate closure of the SSH connection in the sub SSH_CmdExecuted.
    How to overcome?
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice