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, 03 Aug 2010 16:52:11 GMT

I have a list of files which I want to check whether they exist on the remote machine or not.
I could use <sshexe>, which will create a new ssh session for each file, which I want
to check if it exists on the remote machine. I was wondering if somehow I can just use <sshsession>
- which will create an ssh session - and then through that same session I can verify existance
of multiple files on the remote machine.

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