Re: Recursive wget

2006-10-29 Thread Shaun Jackman
On 10/29/06, Fi Dot <[EMAIL PROTECTED]> wrote: Try adding -H option. Worked for me :). That's the option I needed! Thanks. Perhaps wget could indicate the reason it's ignoring a link, like so... Not following the link to xxx.html because it links to another host. Use -H to enab

Re: Recursive wget

2006-10-29 Thread Fi Dot
On 10/29/06, Shaun Jackman <[EMAIL PROTECTED]> wrote: The following web site contains links to a number of music (MP3) files, but wget -r does not download the linked files. I've read the manual page and tried the options -r and -m with -v to no avail. This bug is more likely a bug in the documen

Recursive wget

2006-10-29 Thread Shaun Jackman
The following web site contains links to a number of music (MP3) files, but wget -r does not download the linked files. I've read the manual page and tried the options -r and -m with -v to no avail. This bug is more likely a bug in the documentation than in the program. wget does not give any indi

RE: with recursive wget status code does not reflect success/failure of operation

2005-09-19 Thread Tony Lewis
Hrvoje Niksic wrote: > But I wonder if that's overengineering at work. I don't think so. The overarching concern is to do what's "expected". As you noted elsewhere, on a Unix system, that means exit(0) in the case of success -- preferably with exit(meaningful_value) otherwise. As I recall this c

Re: with recursive wget status code does not reflect success/failure of operation

2005-09-19 Thread Hrvoje Niksic
[EMAIL PROTECTED] (Steven M. Schweda) writes: > I don't want to seem like a chronic complainer (although that might > be an accurate description), but "return 0" is exactly the wrong thing > to do. Wget is a Unix program. Unix programs do return 0 on success. C does provide EXIT_SUCCESS and EXI

Re: with recursive wget status code does not reflect success/failure of operation

2005-09-19 Thread Steven M. Schweda
From: Hrvoje Niksic <[EMAIL PROTECTED]> > "Tony Lewis" <[EMAIL PROTECTED]> writes: > > It seems to me that the easiest way to deal with exit codes is to have a > > single function to set the exit code. For example: > > > > setexitcode(WGET_EXIT_SUCCESS); > > or > > setexitcode(WGET_EXIT_QUOTA

Re: with recursive wget status code does not reflect success/failure of operation

2005-09-19 Thread Hrvoje Niksic
"Tony Lewis" <[EMAIL PROTECTED]> writes: > Steven M. Schweda wrote: > >> Having the exit codes defined in a central location would make it easy >> to adapt them as needed. Having to search the code for every instance >> of "return 1" or "exit(2)" would make it too complicated. > > It seems to me

RE: with recursive wget status code does not reflect success/failure of operation

2005-09-19 Thread Tony Lewis
Steven M. Schweda wrote: > Having the exit codes defined in a central location would make it easy > to adapt them as needed. Having to search the code for every instance > of "return 1" or "exit(2)" would make it too complicated. It seems to me that the easiest way to deal with exit codes is to

Re: with recursive wget status code does not reflect success/failure of operation

2005-09-19 Thread Hrvoje Niksic
Mauro Tortonesi <[EMAIL PROTECTED]> writes: > yes, but i was thinking to define wget specific error codes. I wouldn't object to those. The scripting people might find them useful.

Re: with recursive wget status code does not reflect success/failure of operation

2005-09-19 Thread Mauro Tortonesi
Alle 18:06, lunedì 19 settembre 2005, Hrvoje Niksic ha scritto: > Mauro Tortonesi <[EMAIL PROTECTED]> writes: > > mmh, i don't understand why we should use VMS-specific values in > > wget. > > The closest Unix has to offer are these BSD-specific values which few > programs use: > > /* > * SYSEXIT

Re: with recursive wget status code does not reflect success/failure of operation

2005-09-19 Thread Steven M. Schweda
From: Mauro Tortonesi <[EMAIL PROTECTED]> > >Ideally, the values used could be defined in some central location, > > allowing convenient replacement with suitable VMS-specific values when > > the time comes. (Naturally, _all_ exit() calls and/or return statements > > should use one of the pre

Re: with recursive wget status code does not reflect success/failure of operation

2005-09-19 Thread Hrvoje Niksic
Mauro Tortonesi <[EMAIL PROTECTED]> writes: > mmh, i don't understand why we should use VMS-specific values in > wget. The closest Unix has to offer are these BSD-specific values which few programs use: /* * SYSEXITS.H -- Exit status codes for system programs. * * This include file atte

Re: with recursive wget status code does not reflect success/failure of operation

2005-09-19 Thread Mauro Tortonesi
Alle 09:06, sabato 17 settembre 2005, Steven M. Schweda ha scritto: >I suppose that it's a waste of time and space to point this out here, > but native VMS status codes include a severity field (the low three > bits), with popular values being (from STSDEF.H): > > #define STS$K_WARNING 0

Re: with recursive wget status code does not reflect success/failure of operation

2005-09-17 Thread Steven M. Schweda
I suppose that it's a waste of time and space to point this out here, but native VMS status codes include a severity field (the low three bits), with popular values being (from STSDEF.H): #define STS$K_WARNING 0 /* WARNING */ #define STS$K_SUCCESS 1

Re: with recursive wget status code does not reflect success/failure of operation

2005-09-14 Thread Mauro Tortonesi
Alle 18:58, mercoledì 14 settembre 2005, Hrvoje Niksic ha scritto: > Owen Cliffe <[EMAIL PROTECTED]> writes: > > Is there a good reason why retrieve tree doesn't just return the > > status of the last failed operation on failure? > > The original reason (which I don't claim to be "good") is because

Re: with recursive wget status code does not reflect success/failure of operation

2005-09-14 Thread Hrvoje Niksic
Owen Cliffe <[EMAIL PROTECTED]> writes: > Is there a good reason why retrieve tree doesn't just return the > status of the last failed operation on failure? The original reason (which I don't claim to be "good") is because Wget doesn't stop upon on error, it continues. Because of this returning

with recursive wget status code does not reflect success/failure of operation

2005-09-14 Thread Owen Cliffe
I'm not sure if this is a bug or a feature, but with recursive operation, if a get fails and retrieve_tree bails out then no sensible error codes are returned to main.c (errors are only passed up if the user's quota was full, the URL was invalid or there was a write error) so retrieve_tree always r

Re: recursive wget don't work properly

2003-11-16 Thread Hrvoje Niksic
Marius Andreiana <[EMAIL PROTECTED]> writes: > On Du, 2003-11-16 at 23:08, Hrvoje Niksic wrote: >> Which version of Wget are you using? Can you send the debug output >> from the Wget run? > GNU Wget 1.8.2 (Fedora Core 1). > Attached debuged output. > > As you see, it won't get at slide 7. Maxi

Re: recursive wget don't work properly

2003-11-16 Thread Marius Andreiana
Hi On Du, 2003-11-16 at 23:08, Hrvoje Niksic wrote: > Which version of Wget are you using? Can you send the debug output > from the Wget run? GNU Wget 1.8.2 (Fedora Core 1). Attached debuged output. As you see, it won't get at slide 7. Thank you! -- Marius Andreiana Galuna - Solutii Linux in

Re: recursive wget don't work properly

2003-11-16 Thread Hrvoje Niksic
Marius Andreiana <[EMAIL PROTECTED]> writes: > wget -r --no-parent http://www.desktoplinux.com/files/article003/ > > stops at the first slides (4-6) instead of getting all presentation. Which version of Wget are you using? Can you send the debug output from the Wget run?

recursive wget don't work properly

2003-11-16 Thread Marius Andreiana
Hi wget -r --no-parent http://www.desktoplinux.com/files/article003/ stops at the first slides (4-6) instead of getting all presentation. -- Marius Andreiana Galuna - SoluÅii Linux Ãn RomÃnia http://www.galuna.ro

Bug? Timestamping directories in --recursive wget does not work?

2002-12-11 Thread Kalin KOZHUHAROV
Hi all! I am not 100% sure why this is so, but it is reproducable on my several linux systems. So: 1. Create a new directory and cd to it (mkdir /tmp/mydir && /tmp/mydir) 2. Run wget with an ftp site to get a dir (wget --recursive ftp://ftp.gnu.org/pub/gnu/xinfo*) for example 3. See the time of