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

Reply via email to