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.

  • xcutie@linux.community
    link
    fedilink
    English
    arrow-up
    8
    ·
    8 months ago

    Would it not just be the easiest way to put your scripts under /etc/network/if-up.d/? Then they get run once that connection is brought up.