Re: new feature...

2006-02-03 Thread Kristian Nilssen
", file); system(cmd); } // end of hack. return FILE_NOT_ALREADY_DOWNLOADED; } Steven M. Schweda wrote: From: Kristian Nilssen It's not ugly to implement - I've done it. 1 line of code. [...] Not having seen that line of code, I can't say how portable it might

Re: new feature...

2006-02-02 Thread Kristian Nilssen
It's not ugly to implement - I've done it. 1 line of code. Just need to pass in the name of a script to call on the command prompt. Perhaps another flag to say whether to run the script in the background or not. How you implement that in windows I don't know. K. Jonathan wrote: Now I see what

Re: new feature...

2006-02-02 Thread Kristian Nilssen
It's better to have that functionality inside wget because wget may not sucessfully download the file. Also, wget may be downloading multiple files (usually the case) so, wrapping wget up in a script will not allow you to process each downloaded file. K. Jonathan wrote: any thoughts on this

new feature...

2006-02-02 Thread Kristian Nilssen
any thoughts on this new feature for wget: when a file has been downloaded successfully, wget calls a script with that file as an argument. e.g. wget -r --post-processing='myprocessor.pl' URL would call myprocessor.pl with each file which has been downloaded. I've already hacked the source to

perform action on file download?

2005-12-21 Thread Kristian Nilssen
Any way I can perform an action on a downloaded file? If not can this be a new feature? Perhaps to run a script with the downloaded filename as an argument? thanks, Kristian.