Looks like you are using ant-contrib...you might be able to do something
with their regular expression tasks...
[EMAIL PROTECTED] wrote:
my solution:
command="echo `ls -l /xxx/xxx/temp/heischb/sedtest/test|cut -c1-10`\\c"
need to be an unix expert.. :-)
or read the manuals mindfully...
Regards
Zitat von [EMAIL PROTECTED]:
Hi,
there are tasks or elements of tasks which delete carriage returns in
param with
Stirng.
It's a sshexec - return which i have to prove with a if-loop.
Becauce of the carriage return is the if-loop always false!!
Thats the code:
<target name="chmodcheck" description="Checkt ob Zugriffsrechte
richtig gesetzt
sind">
<sshexec host="yyy.zzz.de" username="user" password="pwd"
trust="true"
command="ls -la /xxx/xxx/temp/heischb/sedtest/test"
outputproperty="temp"/>
<echo>${temp}</echo>
<if>
<equals arg1="${temp}" arg2="-rw-r--r-- 1 xxx
xxx 786 Aug 9 09:35
/xxx/xxx/temp/heischb/sedtest/test" />
<then>
<echo>Korrekt gesetzt</echo>
</then>
<else>
<echo> NICHT KORREKT!!!!! </echo></else>
</if>
</target>
Regards Beni
---------------------------------------------------------------------
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]
--
Scot P. Floess
27 Lake Royale
Louisburg, NC 27549
252-478-8087 (Home)
919-754-4592 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]