ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rao Chaudhri" <rchaud...@1fbusa.com>
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.

Thanks
Usman Chaudhri

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org] 
Sent: Wednesday, July 28, 2010 3:50 AM
To: user@ant.apache.org
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.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message