I am downloading a huge list of files in parallel using xargs. I have the problem that some downloads fail after some time, so once I have run through my list, not all downloads have completed successfully, and I have to rerun the command.
cat links.txt | xargs -n 2 -P 16 wget -c -q -O
Is there a way to output the filename of successful download to a file? The only solution I could find was parsing the wget log file.