ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Z W" <mpc8...@gmail.com>
Subject embed "if-then" in sshexec command question
Date Sun, 10 Feb 2008 13:50:00 GMT
Hi

How do I embed a if-then statement inside sshexec knowing that the remote
shell is a csh ?
I keep getting this error:
  [sshexec] if: Expression Syntax.
  [sshexec] Remote command failed with exit status 1



<sshexec host="${_hostname}"

username="${_username}"

password="${_password}"

command="source .cshrc;

cd ${_dir};

pwd;

test -d ${backup_dir};

if [ $? -eq 1 ]

then

mkdir -p ${backup_dir};

echo inside loop;

fi;

echo outside loop;

mv -f ${data_dir}/* ${backup_dir};

failonerror="false"

output="output.txt"

outputproperty="backup"

timeout="0"

trust="true"/>

thanks

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