Hi All,
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 ";
execChannel.setCommand(command1);
execChannel.connect();
execChannel.disconnect();
But the def.sh command would not execute.
Please advice on what I am missing here....
Thanks,
Deepesh
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users