delete-remote option for FTP

2007-01-23 Thread Bob Haddleton
There have been several requests for a delete-remote option to delete 
files on a remote FTP server after they have been retrieved.  David 
Dorsey submitted a patch with these changes to the wget-patches list 
back in September of 2005, and there is no record of a response or any 
discussion of the patch.


This feature would be extremely useful since wget can act as a 
command-line FTP client, and there are cases where it is desirable or 
necessary to remove files from an FTP server after they have been 
retrieved.  This makes it possible to clean up files automatically when 
they are retrieved, saving disk space and work for the FTP server 
administrator.


I applied David's patch to the latest source branch and it compiles and 
tests successfully.  There is one minor change needed regarding the 
location of the Help text for the new option - it should probably be in 
FTP options instead of Recursive download, but the rest of the patch 
appears to work as designed.


Can we please get David's patch reviewed and applied to the source tree 
if it is accepted?  It would be really nice to have this option in the 
official distribution so we don't have to maintain private copies of wget.


Thanks

Bob Haddleton
Alcatel-Lucent


-O- and -c bug

2004-12-02 Thread Bob Arctor
hello. 
recently i tried to downoad a link directly to an CD by using
wget -O- -c http://site/file.iso | cdrecord dev=[device] - 

everything was fine to the moment when connection died,
wget started downloading of the file _from byte 0_

it seems -c doesn't recognize that when one uses -O- (stdout)
file size is allways 0. wget should in this case remember
file pointer @ some variable, instead of trying to determine
it from file size...


.wgetrc on windows

2002-11-05 Thread Bob
ok - so it's ignoring my file [in same dir as wget and bat that fires it!]

does wget use the .wgetrc file in windows ??
if so where should it be in relation to wget [or user area?]

tia,
bob





Re: .wgetrc on windows

2002-11-05 Thread Bob
OK

so drop the dot and add an environmental called 'HOME' pointing at the
containing folder

thank me

 ok - so it's ignoring my file [in same dir as wget and bat that fires it!]

 does wget use the .wgetrc file in windows ??
 if so where should it be in relation to wget [or user area?]

 tia,
 bob