LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-16-2004, 01:01 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
Wget command question


Hi folks,

FedoraCore2
==========

If I want to down a directory, say CCC from a website

WEBSITE -> AAA -> BBB -> CCC

Previously I used following command on terminal;

$ wget -no--parent http://www.xyz.com/AAA/BBB/CCC/index.htm

then it will only download "CCC"
/CCC/index.htm

Now I use
$ wget -np -r http://www.xyz.com/AAA/BBB/CCC/index.htm

It also downloaded the parent directories "www.xyz", AAA, BBB.

Please advise the correct syntax/command line to be used. TIA

B.R.
satimis

Last edited by satimis; 11-16-2004 at 01:04 AM.
 
Old 11-16-2004, 01:42 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

i have been using wget for quite some time and i have faced no such problems

wget <link of the page to be downloaded>

regards
 
Old 11-16-2004, 02:53 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi masand,

Tks for your advice.

Quote:
[b[wget <link of the page to be downloaded> [/B]
It only download the "index.htm" page.

What I need is to download the complete CCC directory including all links, files, sub-directories, etc. for off-line browsing. Previously I can make it with;

$ wget -no--parent <url>

It did the job for me downloading all necessary data for off-line browsing.

I have not used "wget" for sometimes. Now using the above command line wget still can download what I need but including all directories above which I don't expect to have.

B.R.
satimis
 
Old 11-16-2004, 06:01 AM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

sorry i misunderstood ur question!!
for some sites that support ftp also i use gftp too upload and download the content

regards
 
  


Reply



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
wget command help munkeevegetable Linux - Newbie 8 11-03-2004 06:37 PM
Wget command options help??? tekhead2 Linux - Software 1 06-23-2004 06:58 AM
wget command juanb Linux - General 5 12-11-2003 03:23 PM
wget command not found irs-away Linux - Newbie 4 09-07-2003 10:35 AM
wget command glock19 Linux - General 0 11-29-2001 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:25 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
Open Source Consulting | Domain Registration