Executing a command using JSch
问题 I'm using JSch to automate remotely launching a python script from a background Java process. Modifying the Shell.java example included in the JSch package, I've successfully installed JSch, connected to my Pi, and even commented out the user/domain/password/host key checking prompt boxes in favor of storing these values directly in my Java code. After my java code logs into the remote Pi, I'd like it to send something like sudo nohup python2 myFoo.py & disown to the terminal. In the Shell