Hi folks, Does anyone know how to instruct cron to carry out a command when a connection to the internet is first made after boot? I have a few jobs that only need to be done once per day and require an internet connection e.g downloading the weather forecast and my rss feeds. I’m not always connected to the internet on boot and do not have the computer switched on at the same times every day. Many thanks for any suggestions.

  • catloaf@lemm.ee
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    Would it be a problem to just poll every few minutes?

    You could script it to only actually do anything if the downloaded data is old, and if it is, then download new.