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:[email protected]] Sent: Wednesday, July 28, 2010 3:50 AM To: [email protected] 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: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
