Hi,
I tried to look into the code of the ant-jsch.jar and it seems the problem
can solved we are able to set the daemon thread for com.jcraft.jsch;.Session
true and then it will not hang. Am i correct ? if yes i don't see any
attribute where i can thread as daemon...
Please let me know if i'm missing something
Regards
Anupriya
On 8/6/07, Anupriya Shrimali <[EMAIL PROTECTED]> wrote:
>
> thanks a lot for your help. It did worked !!
>
> but after upgrading sshexec task doesn't exit. Here is my scenario
>
> I'm using cygwin on windows and i'm running ant on windows and have
> openSSH installed.
> When i use the sshexec task to start the remote weblogic server through a
> script ( which is running on remote machine)
>
> Here is my task
>
> <target name="startRemoteServer">
> <sshexec host="${ remote.machine.name}" username="${user}"
> password="${password}"
> command="cd
> ${remote.file.location.framework}/${executionPath};bash
> startRemoteServer.sh " trust="true" />
> </target>
> This task run the startRemoteServer.sh on remote machine and here is the
> code of sh file
>
> $ANT_HOME/bin/ant -DisRemote=true -f build.xml startServer
> exit 0
>
> and code for start server ant task
>
> <target name="startServer" description="Starts weblogic server where FIM
> is deployed" depends="initLocal,initRemote" >
> <echo message="${bea_domain_path}" />
> <exec dir="${bea_domain_path}/bin" executable="cmd"
> newenvironment="true" spawn="true">
> <arg line="/c start cmd "/c set CLASSPATH= & set
> PATH= & startWebLogic.cmd"" />
> </exec>
> <echo message="Waiting for WebLogic to start..." />
> <waitfor maxwait="2" maxwaitunit="minute" checkevery="2"
> checkeveryunit="second">
> <http url="http://localhost:7001/demo" />
> </waitfor>
> <echo message="weblogic server started..." />
> </target>
>
> server is installed correctly on remote machine but sshexec hangs up and
> not exit till i press Ctrl-c. -)
>
> Thanks for the help
>
> Regards
> Anupriya
>
>
>
>
>
>
>
> On 8/6/07, Atsuhiko Yamanaka <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > +-From: "Anupriya Shrimali" <[EMAIL PROTECTED]> --
> > |_Date: Sun, 5 Aug 2007 01:41:37 +0530 _____________________
> > |
> > |I'm using multipal sshexec tasks (latest jar from the
> > |http://www.jcraft.com/jsch/index.html ) in my build file but only
> > one (
> > |first one) get executed properly , other doesn't execute the command
> > on
> > |remote machine.
> >
> > The older Apache Ant had the similar problem; stdout will be closed
> > after the
> > first sshexec task, and that problem has been fixed.
> > If you are not using the latest Apache Ant, it will be worth trying it.
> >
> >
> > 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
> > Fax +81-22-224-8773
> > Skype callto://jcraft/
> >
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users