Solved

wget command not working as expected

Posted on 2011-03-25
3
344 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now