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 <[email protected]> wrote:
From: sujata patra <[email protected]>
Subject: Re: [JSch-users] running muliple commands
To: [email protected], [email protected]
Cc: [email protected]
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 <[email protected]>
To: [email protected]
Cc: [email protected]
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, [email protected] <[email protected]> wrote:
From: [email protected] <[email protected]>
Subject: Re: [JSch-users] running muliple commands
To: [email protected]
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 <[email protected]> wrote:
> From: Ali Nazemian <[email protected]>
> Subject: [JSch-users] running muliple commands
> To: [email protected]
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jsch-users
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users