auto download script

NutraCash

Regular Member
Joined
Nov 7, 2014
Messages
334
Reaction score
92
Hello, I need to check a http url and download any new files that are listed in a directory listing, every minute.
I don't care if it downloads all files repeatedly, as long as it opens them for append so it doesnt have 5000 copies of the same file.


Does anyone know of a script that can do this?


PM me please.
 
Have a cron job run the following wget command every minute:
Code:
wget -r --no-parent http://example.com/folder/

Once the files are downloaded you can merge them together using a bash script
Code:
for i in /path/to/downloaded/files/*
do
cat $i >> bigfile
done
 
Back
Top