Solved

wget command not working as expected

Posted on 2011-03-25
3
346 Views
Last Modified: 2012-06-21
HI

Why is this command not working?

andrea@oscar:~/ensembl/data/homo_sapiens_core_61_37f$ wget -nc ftp://ftp.ensembl.org/pub/release-61/mysql/homo_sapiens_core_61_37f/
--2011-03-25 22:09:01--  ftp://ftp.ensembl.org/pub/release-61/mysql/homo_sapiens_core_61_37f/
           => `.listing'
Resolving ftp.ensembl.org... 193.62.203.113
Connecting to ftp.ensembl.org|193.62.203.113|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/release-61/mysql/homo_sapiens_core_61_37f ... done.
==> PASV ... done.    ==> LIST ... done.

    [ <=>                                   ] 5,961       --.-K/s   in 0.04s  

2011-03-25 22:09:02 (158 KB/s) - `.listing' saved [5961]

Removed `.listing'.
Wrote HTML-ised index to `index.html' [13547].


It is only retrieving a listing of the files in the directory and not the files themselves

thanks
0
Comment
Question by:andieje
3 Comments
 
LVL 11

Accepted Solution

by:
nordtorp earned 500 total points
ID: 35219661
You have only said wget -nc <directory>, try something like 'wget -nc --mirror -l1 <directory>.

wget www.website.com/ only retrieve the index file.
0
 
LVL 11

Expert Comment

by:yelbaglf
ID: 35219664
Try running it without the -nc option.
0
 

Author Comment

by:andieje
ID: 35220611
i already tried without nc
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question