Re: [JSch-users] running muliple commands
Status: Alpha
Brought to you by:
ymnk
From: sujata p. <suj...@ya...> - 2009-02-09 06:14:32
|
why are you not implementing a shell (example shell.java ). Do not use exec. ________________________________ From: Ali Nazemian <mr_...@ya...> To: bce...@ya... Cc: JSc...@li... 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, bce...@ya... <bce...@ya...> wrote: From: bce...@ya... <bce...@ya...> Subject: Re: [JSch-users] running muliple commands To: mr_...@ya... 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_...@ya...> wrote: > From: Ali Nazemian <mr_...@ya...> > Subject: [JSch-users] running muliple commands > To: jsc...@li... > 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 > JSc...@li... > https://lists.sourceforge.net/lists/listinfo/jsch-users |