wget question

2010-08-03 Thread Curt Howland
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi.

I've wanted to do one thing with wget that just seems like it should 
be easy, but I haven't been able to get a combination of recurse 
and level that will do it.

All I want to do is download all the files in a specific directory.

The directories are viewable, for example,

http://media.mises.org/mp3/MU2010/

But wget http://media.mises.org/mp3/MU2010/ just gets the index.html 
file, wget http://media.mises.org/mp3/MU2010/* returns an error, and 
the one time I put -r for recursion, it started downloading 
everything in the http://media.mises.org/mp3/ directory!

Does anyone have a trick? Using Konqueror and click-and-dragging every 
single file is a long, boring task that wears out my mouse.

Curt-



- -- 
Those who torment us for our own good will torment us without end,
for they do so with the approval of their consciences.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iQEVAwUBTFh0hy9Y35yItIgBAQKu2Af/T0btUYBHIedX8IOQiTJk/PVVmuRBsb7+
6njy4ZGX461Cu6HuAI4AxPn/zeKXxrwUH4al4dWsmuV5vbx5ahiCCZLjbcBjTBvp
tyxsEFymPkJ0hczgPegpCdC6wjZC4XcgRyWhimpFHRq+7xBcmZqrRgATAhXq0eIz
Qm0Fk/jGh47i/xx+K9XezQTA9hGBjuLI+VYj4gosLVHzZRn0sc3x3ga7BNG1CsFh
BUaAm5B9+0aj0tEbnr851iTuk+So9CpiuanbgjPjIOhJbEPYJRCjU0r/TltdvSHI
jqxA8roHqpmCSX5zW93kb88yarLoAZoUOeCfHfHId7WKac9pNyHlxQ==
=yV6h
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201008031557.01068.howl...@priss.com



Re: wget question

2010-08-03 Thread Jordon Bedwell

On 8/3/2010 2:56 PM, Curt Howland wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi.

I've wanted to do one thing with wget that just seems like it should
be easy, but I haven't been able to get a combination of recurse
and level that will do it.

All I want to do is download all the files in a specific directory.

The directories are viewable, for example,

http://media.mises.org/mp3/MU2010/

But wget http://media.mises.org/mp3/MU2010/ just gets the index.html
file, wget http://media.mises.org/mp3/MU2010/* returns an error, and
the one time I put -r for recursion, it started downloading
everything in the http://media.mises.org/mp3/ directory!

Does anyone have a trick? Using Konqueror and click-and-dragging every
single file is a long, boring task that wears out my mouse.

Curt-


Check out: http://www.delorie.com/gnu/docs/wget/wget_31.html it has some 
neat tricks for wget, perhaps some along the lines of what you want.  I 
would test a few but my server is too smart for wget and flat out tells 
it where it can go.



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4c587b21.6060...@envygeeks.com



Re: wget question

2010-08-03 Thread Andre Majorel
On 2010-08-03 15:56 -0400, Curt Howland wrote:

 All I want to do is download all the files in a specific directory.
 http://media.mises.org/mp3/MU2010/
 
 But wget http://media.mises.org/mp3/MU2010/ just gets the index.html 
 file, wget http://media.mises.org/mp3/MU2010/* returns an error, and 
 the one time I put -r for recursion, it started downloading 
 everything in the http://media.mises.org/mp3/ directory!

wget -r -np http://media.mises.org/mp3/MU2010/

Add -l1 if you don't want the subdirectories.

-- 
André Majorel http://www.teaser.fr/~amajorel/
lists.debian.org, an essential online resource for spammers.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100803223612.gd4...@aym.net2.nerim.net



wget question

2000-03-27 Thread Antonio Rodriguez
What is wrong with the following? Pasted next the output

bash-2.01$ wget
ftp://ftp.twoguys.org/pub/kde/stable/latest/distribution/deb/potato/i386/*

--19:41:38--
ftp://ftp.twoguys.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/*

   = `.listing'
Connecting to ftp.twoguys.org:21... connected!
Logging in as anonymous ... Logged in!
== TYPE I ... done.  == CWD
pub/kde/stable/latest/distribution/deb/potato/i386 ... done.
== PORT ... done.== LIST ... done.
.listing: Permission denied
unlink: Permission denied
No matches on pattern `*'.
bash-2.01$
Thanks
Antonio.


Re: wget question

2000-03-27 Thread Shao Zhang
You cannot use wildcard in wget. Instead, you should say something like:

wget -r -np 
ftp://ftp.twoguys.org:21/pub/kde/stable/latest/distribution/deb/potato/i386

Shao.

Antonio Rodriguez [EMAIL PROTECTED] wrote:
 What is wrong with the following? Pasted next the output
 
 bash-2.01$ wget
 ftp://ftp.twoguys.org/pub/kde/stable/latest/distribution/deb/potato/i386/*
 
 --19:41:38--
 ftp://ftp.twoguys.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/*
 
= `.listing'
 Connecting to ftp.twoguys.org:21... connected!
 Logging in as anonymous ... Logged in!
 == TYPE I ... done.  == CWD
 pub/kde/stable/latest/distribution/deb/potato/i386 ... done.
 == PORT ... done.== LIST ... done.
 .listing: Permission denied
 unlink: Permission denied
 No matches on pattern `*'.
 bash-2.01$
 Thanks
 Antonio.
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 
 

-- 

Shao Zhang - Running Debian 2.1  ___ _   _
Department of Communications/ __| |_  __ _ ___  |_  / |_  __ _ _ _  __ _ 
University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _` |
Sydney, Australia   |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
Email: [EMAIL PROTECTED]  |___/ 
_


Re: wget question

2000-03-27 Thread Antonio Rodriguez
I just tried, didn't work. Next is the output:

bash-2.01$ wget -r -np
ftp://ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/
--20:17:23--  
ftp://ftp.us.kde.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/
   = 
`ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/.listing'

Connecting to ftp.us.kde.org:21... connected!
Logging in as anonymous ... Logged in!
== TYPE I ... done.  == CWD 
pub/kde/stable/latest/distribution/deb/potato/i386 ... done.

== PORT ... done.== LIST ... done.
ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386: Permission
deniedftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/.listing:
 No such
file or directory
unlink: No such file or directory
--20:17:25--  
ftp://ftp.us.kde.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/
   =
`ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/index.html'
Connecting to ftp.us.kde.org:21... connected!
Logging in as anonymous ... Logged in!
== TYPE I ... done.  == CWD 
pub/kde/stable/latest/distribution/deb/potato/i386 ... done.

== PORT ... done.== RETR  ...
No such file `'.


FINISHED --20:17:27--
Downloaded: 0 bytes in 0 files
bash-2.01$

Shao Zhang wrote:

 You cannot use wildcard in wget. Instead, you should say something like:

 wget -r -np 
 ftp://ftp.twoguys.org:21/pub/kde/stable/latest/distribution/deb/potato/i386

 Shao.

 Antonio Rodriguez [EMAIL PROTECTED] wrote:
  What is wrong with the following? Pasted next the output
 
  bash-2.01$ wget
  ftp://ftp.twoguys.org/pub/kde/stable/latest/distribution/deb/potato/i386/*
 
  --19:41:38--
  ftp://ftp.twoguys.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/*
 
 = `.listing'
  Connecting to ftp.twoguys.org:21... connected!
  Logging in as anonymous ... Logged in!
  == TYPE I ... done.  == CWD
  pub/kde/stable/latest/distribution/deb/potato/i386 ... done.
  == PORT ... done.== LIST ... done.
  .listing: Permission denied
  unlink: Permission denied
  No matches on pattern `*'.
  bash-2.01$
  Thanks
  Antonio.
 
 
  --
  Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 
 

 --
 
 Shao Zhang - Running Debian 2.1  ___ _   _
 Department of Communications/ __| |_  __ _ ___  |_  / |_  __ _ _ _  __ _
 University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _` |
 Sydney, Australia   |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
 Email: [EMAIL PROTECTED]  
 |___/
 _


Re: wget question

2000-03-27 Thread Eric G . Miller
On Mon, Mar 27, 2000 at 07:44:18PM +, Antonio Rodriguez wrote:
 What is wrong with the following? Pasted next the output
 
 bash-2.01$ wget
 ftp://ftp.twoguys.org/pub/kde/stable/latest/distribution/deb/potato/i386/*
 
 --19:41:38--
 ftp://ftp.twoguys.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/*
 
= `.listing' Connecting to ftp.twoguys.org:21...
connected!  Logging in as anonymous ... Logged in!  ==
TYPE I ... done.  == CWD
pub/kde/stable/latest/distribution/deb/potato/i386 ...
done.  == PORT ... done.== LIST ... done.  .listing:
Permission denied unlink: Permission denied No matches on
pattern `*'.  bash-2.01$ Thanks Antonio.
 

Don't you want the '-r' flag? I don't think wget understands wildcards.
Be careful with the '-r' flag though, you might end up with the whole
internet!

-- 
++
| Eric G. Milleregm2@jps.net |
| GnuPG public key: http://www.jps.net/egm2/gpg.asc  |
++


Re: wget question

2000-03-27 Thread Shao Zhang
What version of wget are you using?
Are you actually in the directory that is writable by the user?

Mine is 1.5.3 and it works. See output below:
[13:32|pts/[EMAIL PROTECTED] % wget -r -np
ftp://ftp.us.kde.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/
--13:34:26--
ftp://ftp.us.kde.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/
   =
`ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/.listing'
Connecting to ftp.us.kde.org:21... connected!
Logging in as anonymous ... Logged in!
== TYPE I ... done.  == CWD
pub/kde/stable/latest/distribution/deb/potato/i386 ... done.
== PORT ... done.== LIST ... done.

0K - .

13:34:36 (4.51 KB/s) -
`ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/.listing'
saved [1844]

Removed
`ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/.listing'.
--13:34:36--
ftp://ftp.us.kde.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/Packages.gz
   =
`ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/Packages.gz'
== CWD not required.
== PORT ... done.== RETR Packages.gz ... done.
Length: 3,854

0K - ...[100%]

13:34:41 (928.00 B/s) -
`ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/Packages.gz'
saved [3854]

--13:34:41--
ftp://ftp.us.kde.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/kdeadmin_1.1.2-19990906-1_i386.deb
   =
`ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/kdeadmin_1.1.2-19990906-1_i386.deb'
== CWD not required.
== PORT ... done.== RETR kdeadmin_1.1.2-19990906-1_i386.deb ...
done.

Antonio Rodriguez [EMAIL PROTECTED] wrote:
 I just tried, didn't work. Next is the output:
 
 bash-2.01$ wget -r -np  
 ftp://ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/
 --20:17:23--  
 ftp://ftp.us.kde.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/
= 
 `ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/.listing'
 
 Connecting to ftp.us.kde.org:21... connected!
 Logging in as anonymous ... Logged in!
 == TYPE I ... done.  == CWD 
 pub/kde/stable/latest/distribution/deb/potato/i386 ... done.
 
 == PORT ... done.== LIST ... done.
 ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386: Permission
 deniedftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/.listing:
  No such
 file or directory
 unlink: No such file or directory
 --20:17:25--  
 ftp://ftp.us.kde.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/
=
 `ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/index.html'
 Connecting to ftp.us.kde.org:21... connected!
 Logging in as anonymous ... Logged in!
 == TYPE I ... done.  == CWD 
 pub/kde/stable/latest/distribution/deb/potato/i386 ... done.
 
 == PORT ... done.== RETR  ...
 No such file `'.
 
 
 FINISHED --20:17:27--
 Downloaded: 0 bytes in 0 files
 bash-2.01$
 
 Shao Zhang wrote:
 
  You cannot use wildcard in wget. Instead, you should say something like:
 
  wget -r -np 
  ftp://ftp.twoguys.org:21/pub/kde/stable/latest/distribution/deb/potato/i386
 
  Shao.
 
  Antonio Rodriguez [EMAIL PROTECTED] wrote:
   What is wrong with the following? Pasted next the output
  
   bash-2.01$ wget
   ftp://ftp.twoguys.org/pub/kde/stable/latest/distribution/deb/potato/i386/*
  
   --19:41:38--
   ftp://ftp.twoguys.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/*
  
  = `.listing'
   Connecting to ftp.twoguys.org:21... connected!
   Logging in as anonymous ... Logged in!
   == TYPE I ... done.  == CWD
   pub/kde/stable/latest/distribution/deb/potato/i386 ... done.
   == PORT ... done.== LIST ... done.
   .listing: Permission denied
   unlink: Permission denied
   No matches on pattern `*'.
   bash-2.01$
   Thanks
   Antonio.
  
  
   --
   Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
  
  
 
  --
  
  Shao Zhang - Running Debian 2.1  ___ _   _
  Department of Communications/ __| |_  __ _ ___  |_  / |_  __ _ _ _  __ _
  University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _` 
  |
  Sydney, Australia   |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, 
  |
  Email: [EMAIL PROTECTED]  
  |___/
  _
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 
 

-- 

Shao Zhang - Running Debian 2.1  ___ _   _
Department of Communications/ __| |_  __ _ ___  |_  / |_  __ _ _ _  __ _ 
University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _` |
Sydney, Australia   |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
Email: [EMAIL 

Re: wget question

2000-03-27 Thread Antonio Rodriguez
You are right, the error was that  I had created the directory as root, and was 
trying to write as user. Now it
is working, thanks a lot
Antonio.

Shao Zhang wrote:

 What version of wget are you using?
 Are you actually in the directory that is writable by the user?

 Mine is 1.5.3 and it works. See output below:
 [13:32|pts/[EMAIL PROTECTED] % wget -r -np
 ftp://ftp.us.kde.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/
 --13:34:26--
 ftp://ftp.us.kde.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/