ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hei...@yawido.de
Subject chmod-check remote...
Date Wed, 16 Aug 2006 06:25:09 GMT
Hi,
there are any tasks for check chmod of files on servers?

It's not so good to do it like this..
        <for param="filename">
                        <path>
                                <fileset dir="${referenzdir}">
                                        <include name="*"/>
                                </fileset>
                        </path>
                        <sequential>
                                <echo>@{filename}</echo>
                <sshexec host="xxx" username="yyy" password="yyy" trust="true"
command="echo
`ls -l /yyy/yyy/temp/heischb/Web-Programm/@{filename}|cut -c1-10`\\c"
outputproperty="temp" />
                <echo>${temp}</echo>
                                <if>
                        <equals arg1="${temp}" arg2="-rwxr-xr-x" />
                        <then>
                                <echo>Korrekt gesetzt</echo>
                        </then>
                        <else>
                                <echo> NICHT KORREKT!!!!! </echo>
                                <echo> @{filename}</echo>
                        </else>
                </if>
                        </sequential></for>

... because it needed a ssh-connection for every file ...

Have anybody a idea?

Regards Benjamin Heisch


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


Mime
View raw message