My application residing on a host server need to execute a shell script
residing on a remote server.
The shell script needs parameters also which I am passing to the script.
The sample code is as follows:
ChannelExec execChannel = (ChannelExec) session.openChannel("exec");
String command1 = "cd /abc/xyz; ./def.sh abc 123 ";
But the def.sh command would not execute.
Please advice on what I am missing here....