curl-users
Re: Curl returns exit code 18 for remote file
Date: Tue, 2 Aug 2011 12:48:00 -0700
On Tue, Aug 02, 2011 at 02:17:45PM -0500, Young,Jim wrote:
>And earlier, someone else wrote:
>> The problem that I want solved is simply to confirm via ftp that the
>> file name exists on the target host. So, if this is accomplished in
>> some other way with curl I would appreciate being informed as to how
>> that is done.
>
> A suggestion for a slightly different approach - use the --list-only option and grep through the listing output for the file you're interested in.
If you're just interested in whether the file exists or not, the --head
option should be sufficient.
>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-08-02