ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Javier Ballesteros" <jballeste...@infodesa.es>
Subject RE: Problems deleting files or directories via ftp
Date Tue, 17 Jan 2006 07:26:36 GMT
Yes, I paste you the permissions of that directories with the same user that
runs the script (note that the script crash with whatever file, now i'm
trying with version txt, for example):


227 Entering Passive Mode (172,27,6,6,211,250)
150 Opening ASCII mode data connection for /usr/bin/ls.
total 22
-rw-r-----   1 cvnt2032   users         9605 13 Ene 13:27 ejb-jar.xml
drwxrwxr-x   4 cvnt2032   users         1024 13 Ene 11:25 ismc
drwxr-x---   4 cvnt2032   users           96 16 Ene 14:16 ismc_pruebas
drwxr-xr-x   3 cvnt2032   users           96  3 Nov 12:34 ofmo
226 Transfer complete.
ftp> cd ismc_pruebas
250 CWD command successful.
ftp> ls -l
227 Entering Passive Mode (172,27,6,6,212,4)
150 Opening ASCII mode data connection for /usr/bin/ls.
total 12
drwxr-x---   6 cvnt2032   users         1024 16 Ene 15:13 cliente
drwxr-x---   5 cvnt2032   users         5120 16 Ene 15:29 servidor
226 Transfer complete.
ftp> ls -l cliente
output to local-file: cliente? n
ftp> ls cliente
227 Entering Passive Mode (172,27,6,6,212,18)
150 Opening ASCII mode data connection for /usr/bin/ls.
total 6
drwxr-x---   5 cvnt2032   users         1024 16 Ene 15:13 Guadalajara
drwxr-x---   2 cvnt2032   users         1024 16 Ene 15:13 Images
drwxr-x---   2 cvnt2032   users           96 16 Ene 15:13 Library
drwxr-x---   2 cvnt2032   users           96 16 Ene 15:13 META-INF
-rw-r-----   1 cvnt2032   users           10 16 Ene 15:13 version.txt
226 Transfer complete.




-----Mensaje original-----
De: glenn opdycke-hansen [mailto:glennoph@gmail.com]
Enviado el: lunes 16 de enero de 2006 17:34
Para: Ant Users List
Asunto: Re: Problems deleting files or directories via ftp


Yes, you did post that.
Did you check the permissions on the directories, too?
--glenn

On 1/16/06, Javier Ballesteros <jballesteros@infodesa.es> wrote:
> Hi!
>
>         As I posted early, when I put files manually, using same user,
same
> password in other words the same account I can delete, create or whatever.
> That's the reason of my confusion about where the problem is. I know thi
is
> a simple script and must work, but in fact doesn't.
>
> Thnkx and cheers!
>
> -----Mensaje original-----
> De: glenn opdycke-hansen [mailto:glennoph@gmail.com]
> Enviado el: lunes 16 de enero de 2006 17:22
> Para: Ant Users List
> Asunto: Re: Problems deleting files or directories via ftp
>
>
> Does the user have permissions to delete the file(s)?
>
> from google:
> Answer/Solution: The 550 error is a message from the server stating
> that the account you have currently logged in as does not have
> permission to perform the action you are attempting. You may be trying
> to upload to the wrong directory or trying to delete a file.
>
> --glenn
>
> On 1/16/06, Javier Ballesteros <jballesteros@infodesa.es> wrote:
> > Hi all!
> >
> >         I have a simple piece of code, to remove files and/or
directories,
> Ive just
> > copied the most simple example, and every time I try to execute it, I
> > obtaoin an ftp 550 error. I'm the only user of the ftp, no process is
> > locking the file, I have all the permissions, and samples for uploading
> are
> > workig properly.
> >
> >         I paste the code and the output:
> >
> >         <ftp    action="delete"
> >                         server="server.com"
> >                         userid="user"
> >                 password="password"
> >                 verbose="yes"
> >                 remotedir="remote_dir" >
> >                 <fileset>
> >                         <include name="**/*.xml" />
> >                 </fileset>
> >         </ftp>
> >
> > ftp:
> >      [echo] Conexion FTP a 172.27.6.6 para borrar destino
> >      [echo] Borrando los directorios FTP del cliente:
ismc_pruebas/cliente
> >       [ftp] deleting files
> >       [ftp] deleting ne 10:33 ejb-jar.xml
> >
> > Total time: 2 seconds
> >
> > BUILD FAILED
> >
> > C:\jakarta-ant-1.4\bin\subida.xml:55: could not delete file: 550 ne
10:33
> > ejb-jar.xml: No such file or directory.
> >
> >         The error tell me that the file that I want to delete is not
> found. I don't
> > understand, please can help me?
> >
> >
> > Version of ANT:1.4 under Windows NT.
> >
> > Thankx in advance!
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
> ---------------------------------------------------------------------
> 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


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


Mime
View raw message