I have a cron job on a server which once a day uses wget
to download "Earth Orientation Parameters" and leapsecond data from a NASA server. Specifically:
wget https://gemini.gsfc.nasa.gov/500/oper/solve_apriori_files/usno_finals.erp -O .eops
wget https://gemini.gsfc.nasa.gov/500/oper/solve_apriori_files/ut1ls.dat -O .ut1ls
This works fine. However it seems when the server is unavailable, wget
clobbers my local files (filesize 0). Is there anyway to tell wget
to abort if the server not available and leave the local file unaffected. (The files contain predictions of a couple of months, so missing the update for a few days until the server comes back is not a problem).