ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jin Teck Chu <>
Subject sshexec is not exiting
Date Fri, 05 Nov 2004 14:58:58 GMT
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

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.


<?xml version="1.0"?>
<project name="test" basedir="." default="test">

    <target name="test">
                <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"/>

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


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message