bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] Re: wget: customizable ".listing" file


From: Manfred Schwarb
Subject: [Bug-wget] Re: wget: customizable ".listing" file
Date: Sat, 14 Nov 2009 22:52:47 +0100

> > [...] --listing-file=".listing.1" [...]
> 
>    It might be easier (for the victim) to have the code use a
> unique-ified name automatically instead of (plain) ".listing". 
> ".listing_<pid>", or something from tmpnam() or tempnam() (or whatever's
> popular nowadays).
> 
> ------------------------------------------------------------------------
> 
>    Steven M. Schweda               address@hidden
>    382 South Warwick Street        (+1) 651-699-9818
>    Saint Paul  MN  55105-2547
> 
> 

Yes, ".listing_<pid>" would work.

However, tmpnam() or similar would not. The problem is,
you have to know which listing file belongs to which job, so
you need some feedback. And having to parse the debug output 
of wget just to know which name was chosen is not nice.

with the command
"wget -N -q ftp://ftp.gnu.org/gnu/wget/wget-1.12.tar.gz & pid=$!"
you easily get the pid of the job, no problem here.

The point simply is, the current solution is not good and prevents
parallel invocations of wget.

Most people however use wget in foreground mode, so there is no
benefit for them to have some ".listing_<pid>", it just would
clutter the disk if they are not careful (provided that they 
use --no-remove-listing). So I opted for a version which does
not change current behaviour. But YMMV.
For me either version would work, but not the current one.

Cheers,
Manfred











reply via email to

[Prev in Thread] Current Thread [Next in Thread]