Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I\'m looking for a utility that will automatically synchronize a file available

ID: 661014 • Letter: I

Question

I'm looking for a utility that will automatically synchronize a file available via a URL ie:

www.someurl.com/file.txt

to a local location on a computer ie:

c: iles ile.txt

It needs to download a copy of the URL file and overwrite the existing file on either a schedule, or based on file changes. (not appending, not making a new file with a different extension, etc).

I've been digging around google for about half an hour and am not having any luck finding something that does that, but I know it has to be out there.

Any help is appreciated.

Explanation / Answer

You can use wget to retrieve the file:

free and open-source
works on Linux and Windows

You can use cron on Linux or Windows Task Scheduler on Windows to schedule your synchronization. Both are free.

Edit: to deploy you can:

on Windows use the command line scheduler "at": e.g. at 8am /EVERY:M,T,W,Th,F,S,Su cmd /c c:myapp.exe
on Linux use crontab: (crontab -l ; echo "0 * * * * your_command") | sort - | uniq - | crontab -

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote