LinuxQuestions.org
Review your favorite Linux distribution.
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 03-27-2004, 11:57 AM   #1
revenant
LQ Newbie
 
Registered: Mar 2004
Distribution: SuSE 9.0
Posts: 14

Rep: Reputation: 0
wget & Slack patches


I have just installed Slackware 9.1 and I'm trying to download the latest security patches. I tried to used the following command to download all the *.tgz files in the directory.

wget ftp://ftp.slackware.com/pub/slackwar...packages/*.tgz

Then I get the following output and error message.

--01:27:27-- ftp://ftp.slackware.com/pub/slackwar...packages/*.tgz
=> `.listing'
Resolving ftp.slackware.com... done.
Connecting to ftp.slackware.com[207.173.172.131]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/slackware/slackware-9.1/patches/packages ... done.
==> PORT ... done. ==> LIST ...
Error in server response, closing control connection.

Is there something I'm doing wrong? Any suggestions on a better a better way?

Any help would be appreciated.

Last edited by revenant; 03-27-2004 at 11:58 AM.
 
Old 03-27-2004, 12:09 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
You can't use * in the address field.

man wget for more options of getting all files out of a directory, etc.
 
Old 08-30-2004, 12:53 PM   #3
skelly
LQ Newbie
 
Registered: Nov 2003
Location: Silicon Valley
Posts: 10

Rep: Reputation: 0
.. sure it supports wild cards. Take this excerpt directly from the manpage:

Quote:
-g on/off

--glob=on/off
Turn FTP globbing on or off. Globbing means you may use the shell-like special characters (wildcards), like *, ?, [ and ] to retrieve more than one file from the same directory at once, like:

wget ftp://gnjilux.srk.fer.hr/*.msg

By default, globbing will be turned on if the URL contains a globbing character. This option may be used to turn globbing on or off permanently.

You may have to quote the URL to protect it from being expanded by your shell. Globbing makes Wget look for a directory listing, which is system-specific. This is why it currently works only with Unix FTP servers (and the ones emulating Unix ls output).
You might want to try --glob=on to explicitly enable it and also try quoting the path as suggested to ensure that your shell isn't expanding the wildcard before it gets to wget.

I realized this is a significantly late response, but it never hurts to set things straight. I found this post on a search because I'm getting the same error message but from a different cause.

Last edited by skelly; 08-30-2004 at 12:54 PM.
 
  


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
about patches in slack 10 alixx Slackware 3 08-25-2005 11:10 PM
How to Update Slack Patches? Lucinda Slackware 6 05-15-2005 08:44 AM
Bugfixes & vulnerability patches thorn168 Conectiva 2 05-05-2005 03:40 PM
keep slack 10 updated with wget? mipia Slackware 8 10-13-2004 05:01 PM
wget & --exclude-directories Tinkster Slackware 4 07-20-2003 10:02 PM

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

All times are GMT -5. The time now is 04:57 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