ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rao Chaudhri" <>
Subject RE: <sshsession> in ANT 1.8
Date Tue, 10 Aug 2010 17:25:17 GMT

Ant task <sshexec> would create a new session every time.

I want to run "test -f" UNIX command for multiple files on my remote server, and I thought
that using <sshsession>, I could just create one SSH session and execute all the UNIX
test commands through that same session. This way I can avoid creating multiple SSH sessions
to the remote machine. Any ideas?

Usman Chaudhri

-----Original Message-----
From: Stefan Bodewig [] 
Sent: Wednesday, July 28, 2010 3:50 AM
Subject: Re: <sshsession> in ANT 1.8

On 2010-07-27, Rao Chaudhri wrote:

> Getting error: "CreateProcess: test -f /tmp/test.log error=2"

This is the error Windows emits if it cannot find the executable you ask
it to run.

> Here's the code, not sure what's wrong here.

>                   <sshsession ...
>                         failonerror="true">
>                         <sequential>
>                               <exec executable="test">

If you intend to run the command on the remote machine, you want to use
sshexec, not exec.


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

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

View raw message