How can i do that?!!
for ex i want to run this command:
cd /home/Fluent.Inc/bin
./fluent 3ddp ...
how can i do that with shell?! note that i want to hide commands from users and also i dont want to read it from shell script file .

--- On Mon, 2/9/09, sujata patra <sujata_patra2002@yahoo.com> wrote:
From: sujata patra <sujata_patra2002@yahoo.com>
Subject: Re: [JSch-users] running muliple commands
To: mr_aliagha@yahoo.com, bcemkucuk@yahoo.com
Cc: JSch-users@lists.sourceforge.net
Date: Monday, February 9, 2009, 9:44 AM

why are you not implementing a shell (example shell.java ). Do not use  exec.



From: Ali Nazemian <mr_aliagha@yahoo.com>
To: bcemkucuk@yahoo.com
Cc: JSch-users@lists.sourceforge.net
Sent: Monday, January 26, 2009 2:08:03 AM
Subject: Re: [JSch-users] running muliple commands

Thanks , that works fine , but for large scripts , its not interesting to do in this way , but at least , its works now!!
IT should be a way to write scripts in one method and send it via channel ! maybe it need some hack in JSCH!!

--- On Sun, 1/25/09, bcemkucuk@yahoo.com <bcemkucuk@yahoo.com> wrote:
From: bcemkucuk@yahoo.com <bcemkucuk@yahoo.com>
Subject: Re: [JSch-users] running muliple commands
To: mr_aliagha@yahoo.com
Date: Sunday, January 25, 2009, 4:47 PM

hi
i'm also new to jsynch and i've achieved same
problem by using
semi-colon between commands ..

command.setCommand("cd test; mkdir newDir")
or i've also heard that it is also possible to use different channels for
each command
...

if u find out a smarter way please notify me

regards
cem




--- On Sat, 1/24/09, Ali Nazemian <mr_aliagha@yahoo.com> wrote:

> From: Ali Nazemian <mr_aliagha@yahoo.com>
> Subject: [JSch-users] running muliple commands
> To: jsch-users@lists.sourceforge.net
> Date: Saturday, January 24, 2009, 10:38 PM
> Hi ,
> i want to ssh via java using jsch , and run multiple
> execution commands , how should i do that?! it seems that i
> can run one command per channel?! do you have any sample
> code for running multiple commands?!
> Regards.
>
>
>
>

>
------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your
story.
>
http://p.sf.net/sfu/sf-spreadtheword_______________________________________________
> JSch-users mailing list
> JSch-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jsch-users