cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: FW: Downloading all files in a directory

From: Gavin Webb <gavin.webb_at_bluespier.com>
Date: Thu, 16 Sep 2004 09:25:28 +0100

Thanks Kjell

I use Clarion 6.1 from SoftVelocity (www.softvelocity.com).

I need to get this running pretty quickly and so want to get the command
line stuff running first. I can easily parse text files and run command
line programs from within my program - so no problems there.

Later on when I have a first working solution then I shall try to get it
working with libcurl and get it properly integrated.

-----Original Message-----
From: Kjell Ericson [mailto:Kjell.Ericson_at_haxx.se]
Sent: 16 September 2004 08:22
To: gavin.webb_at_bluespier.com; curl tool talk
Subject: Re: FW: Downloading all files in a directory

On Thu, 16 Sep 2004, Gavin Webb wrote:

> I figured in this case I could redirect the output from the command which
> gives me a file directory listing and then assuming this file has a fixed
> format (i.e. the filenames are consistently at a given position in the
file)
> I could extract them from the file and then issue individual commands to
> download.

What kind of programming language do you use?
It shouldn't be hard to parse the output instead of assuming a fixed place
for the filename.

> Does that seem the right way to do it?

If it solves your problem, then it is. I would do it more or less like
that.

  // Kjell
Received on 2004-09-16