", 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
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
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
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
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.