I have this: ChannelExec channel1 = (ChannelExec) session.openChannel("exec"); String command1 = "/opt/deluge/latest/bin/deluge-console -c ./.config/deluge"; String commandCon = "connect 127.0.0.1:2035"; String location = channelSftp.getHome(); String command2 = "add " + location + "/torrent1.torrent"; channel1.setCommand(command1 + "\n" + commandCon + "\n" + command2); channel1.connect(); But it isn’t adding the file I’m trying to add. The full command […]
The post JSch Multiple command issues? appeared first on BlogoSfera.