LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 11-23-2004, 07:56 PM   #1
wesw02
LQ Newbie
 
Registered: Oct 2004
Distribution: redhat, fedora, mandrake, debian, and my fav. gentoo
Posts: 8

Rep: Reputation: 0
wget ? maybe


hey all,
i'm tring to use wget to download all the file in a web directory (without any index), but it's just making alist of the files in an index.html it's not actually downloading the files, any suggestions or is there another program or script that i could use

wes
 
Old 11-23-2004, 09:27 PM   #2
wesw02
LQ Newbie
 
Registered: Oct 2004
Distribution: redhat, fedora, mandrake, debian, and my fav. gentoo
Posts: 8

Original Poster
Rep: Reputation: 0
lol, k so i'm reply to my own thread how dumb is that.

found that if you use wget -r http://yoursource.com/yourdirectory
it will download all the files within that directory, BUT <b>BUT</b> it won't grab the other directories with in that directory

EX
wget -r http://www.mysite.com/dir1/
will only retreive the files in dir1 it wont enter in to "http://www.mysite.com/dir1/dir2" to get those files and thats what i want


any ideas ??
 
Old 11-24-2004, 12:35 AM   #3
allstarzero
LQ Newbie
 
Registered: Nov 2004
Location: georgia, us
Distribution: linux mint
Posts: 18

Rep: Reputation: 0
wget's r option, when used with http, is for recursive retrieval through links, not a directory structure (i.e. wget -r -l 2 http://somesite.com/mydirectory follows links for 2 levels and downloads those files). to get the behavior you are expecting, i imagine you'll have to do your wget'ing through ftp instead of http, but i wouldn't swear to it. try rtfm (info wget, or man wget for a brief summary of commands).

-michael
 
Old 11-24-2004, 01:25 AM   #4
theonebeyond
Member
 
Registered: Aug 2004
Location: Germany
Distribution: Slackware 10.0
Posts: 258

Rep: Reputation: 30
I agree with allstarzero,

I treid a lot of different things with wget, including what you are trying. And what you want is one of the things I could not manage up to now.

Of course this does not mean it is impossible, ... maybe I was to n00b when I tried...

Greetings, Sascha
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't wget!! aru_04 Linux - General 5 08-13-2005 06:07 AM
wget noir911 Linux - Newbie 8 07-30-2005 09:57 AM
wget Harp00 Linux - Newbie 4 11-15-2004 08:27 PM
wget toastermaker Linux - Software 4 11-13-2004 11:59 AM
wget filex Linux - Security 4 09-08-2004 09:02 PM


All times are GMT -5. The time now is 01:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration