curl-users
Help for an Uber noob. Very basic
Date: Mon, 12 Jan 2009 19:45:26 +0200
Hi there.
I am a new user to both cURL and the command line. However, I can see just
how useful cURL could be to me.
I am using Ubuntu 8.10 and need help with the most basic commands.
There are a list of images I would like to download. But I do not know the
scripting languages necessary nor can I access the directory storing the
images. I can however access each image at a time.
For example I can
displayhttp://picayune.uclick.com/comics/crrub/2009/crrub090112.gif<%20http://picayune.uclick.com/comics/crrub/2009/crrub090112.gif>but
not
http://picayune.uclick.com/comics/crrub/2009/ .
I have read what I thought was relevant in the MAN pages but it did not seem
to work. Obviously I am doing something wrong.
I have managed to download the above image (the .gif) but it names itself
after the ubuntu directory even if I use the --O option.
Here is my sample code:
*victor_at_victor-desktop:~$ curl --O "victor_at_victor-desktop"
http://picayune.uclick.com/comics/crrub/2009/crrub090112.gif
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 50002 100 50002 0 0 34977 0 0:00:01 0:00:01 --:--:--
39983*
This downloads it but the file is called *victor_at_victor-desktop . *Obviously
this wont work if I want to download 100 of them.
So then I tried this:
*victor_at_victor-desktop:~$ curl --O "victor_at_victor-desktop"/--remote-name
http://picayune.uclick.com/comics/crrub/2009/crrub090112.gif
Warning: Failed to create the file victor_at_victor-desktop/--remote-name
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
2 50002 2 1062 0 0 5277 0 0:00:09 --:--:-- 0:00:09
5277
curl: (23) Failed writing body (0 != 1062)**
*
As you can see this does not get me anywhere.
Please help and thank you.
P.S. This is also the first time I have used a mailing list so just say if I
am doing something wrong.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-01-12