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
------------------------------------------------------------------------------
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