ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hei...@yawido.de
Subject Re: delete carriage returns in param
Date Thu, 10 Aug 2006 12:55:18 GMT
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 heisch@yawido.de:

> 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message