Solved

wget command not working as expected

Posted on 2011-03-25
3
349 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
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.

705 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