Hi, +-From: Deepesh Naidu <deepesh.na...@gmail.com> -- |_Date: Tue, 21 Jun 2011 16:38:16 -0400 __________ | ... |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....
Do you have the same error on http://www.jcraft.com/jsch/examples/Exec.java Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 +1-415-578-3454 Skype callto://jcraft/ Twitter: http://twitter.com/ymnk Facebook: http://facebook.com/aymnk ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users