cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Delete remote file

From: Derek Goring <nztideman_at_yahoo.co.nz>
Date: Tue, 6 Jul 2004 19:05:57 +1200 (NZST)

--- Linus Nielsen Feltzing <linus_at_haxx.se> wrote: >
Derek Goring wrote:
> > Hi there
> >
> > I use command line cURL and I'd like to retrieve a
> > mailbox by ftp, then delete it. I can't find this
> > facility in the manual, nor in the archives. Can
> it
> > be done?
>
> From the curl man page:
>
> -Q/--quote <command>
>
> (FTP) Send an arbitrary command to the remote FTP
> server, by using the
> QUOTE command of the server. Not all servers support
> this command, and
> the set of QUOTE commands are server specific! Quote
> commands are sent
> BEFORE the transfer is taking place. To make
> commands take place after a
> successful transfer, prefix them with a dash '-'.
> You may specify any
> amount of commands to be run before and after the
> transfer. If the
> server returns failure for one of the commands, the
> entire operation
> will be aborted.
>
> This option can be used multiple times.
>
> Linus
>

Thank you for quoting the manual, which I'd already
read. I tried:
-Q -delete
but got:
curl: <21> QUOT string not accepted: delete

What is the correct string for delete? Or is there a
better way?

=====
________________
Derek Goring
Mulgor Consulting Ltd
24 Brockworth Place
Christchurch, New Zealand
Phone: 64 3 343 5400
Mobile: 64 272 777 639
Website: www.mulgor.co.nz

Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com
Received on 2004-07-06