ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rao Chaudhri" <rchaud...@1fbusa.com>
Subject <sshsession> in ANT 1.8
Date Tue, 27 Jul 2010 20:40:41 GMT
Hi, 

 

I am trying to run a shell "test" command on a remote server, to check for the existence of
a file, using <sshsession> task which is available in ANT 1.8.

 

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

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

                  <sshsession                   

                        host="abc123"

                        username="admin"

                        password="admin"                    

                        trust="true"            

                        failonerror="true">                      

                        <sequential>

                              <exec executable="test">                             
                                          

                                    <arg line="-f"/>

                                    <arg line="/tmp/test.log"/>

                              </exec>     

                        </sequential>                       

                  </sshsession>                       

 

Thanks in advance.

Usman Chaudhri

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message