Are you running the ssh daemon in some special way? On every maching that I run sshd on, it is running all the time, not just when there is a client connected. Oh, are you running sshd through inetd? Why is it a problem to keep the ssh connection open during the execution of both tasks?
-Rob A > -----Original Message----- > From: Jin Teck Chu [mailto:[EMAIL PROTECTED] > Sent: Friday, November 05, 2004 6:59 AM > To: Ant Users List > Subject: sshexec is not exiting > > > Hi, > With reference to the following ant script, I am trying to > use sshexec to connect 2 different machines, host1 and host2, > in parallel. The duration for these 2 connections are set to > different time. > > The issue that I am having is when the sshexec task has ended > in host1, the ssh daemon on host1 still persists because the > host2 is still in session. The daemons on both hosts will > exit if the ant script has ended. > > Is this a bug or feature of sshexec? Thanks. > > jt > > <?xml version="1.0"?> > <project name="test" basedir="." default="test"> > > <target name="test"> > <parallel> > <sequential> > <property name="host1" value="host1"/> > <echo message="${host1} session .............. open"/> > <sshexec host="${host1}" username="dude" > password="yo" command="sleep 10"/> > <echo message="${host1} session ............. close"/> > </sequential> > > <sequential> > <property name="host2" value="host2"/> > <echo message="${host2} session .............. open"/> > <sshexec host="${host2}" username="dude" > password="yo" command="sleep 30"/> > <echo message="${host2} session ............. close"/> > </sequential> > </parallel> > </target> > > </project> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]