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]



Reply via email to