Tech Support Forum banner
Status
Not open for further replies.
1 - 4 of 4 Posts

· Registered
Joined
·
2 Posts
Discussion Starter · #1 ·
Just getting started with wget and can't understand why this wont work

I'm trying to access zip files from a site.


E.g
Www.mysite.com/example1.zip

Wget www.mysite.com/example1.zip works to retrieve the single file. However I have ten example.zip files on the server.

If I try
wget -r -A.zip "http://www.mysite.com"

That's all I get is a folder with the index.html file

I have also tried the command with no parent as well


Any help would be greatly appreciated.
 

· Premium Member
Joined
·
2,755 Posts
Just getting started with wget and can't understand why this wont work

I'm trying to access zip files from a site.


E.g
Www.mysite.com/example1.zip

Wget www.mysite.com/example1.zip works to retrieve the single file. However I have ten example.zip files on the server.

If I try
wget -r -A.zip "http://www.mysite.com"

That's all I get is a folder with the index.html file

I have also tried the command with no parent as well


Any help would be greatly appreciated.
Modify like this and it should work:

wget -r -A.zip -l1 "http://www.mysite.com"

The -l1 is a lowercase "L" then digit one
Also remember that files will be downloaded in the directory you run the
command from and URL containing zip files must be correct,
 
1 - 4 of 4 Posts
Status
Not open for further replies.
Top