I've written a script that downloads a certain file for Windows machines and saves it under a filename based on the date - that works fine and is available to anyone else who wants it.
I have also set a cron job to run this script on a weekly basis.
However, I cannot always guarantee that this machine will be on or connected to the internet at the time the job is set. What I need to know is how to make the job run at a time when the machine is on and has an internet connection, and if there isn't a connection (or the job is missed due to the machine being off) then to make it run at a later time, even the next day if necessary.
Any thoughts on how I'd do this?
Thanks in advance.