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.
Systemd timers are able to do this. Set it up to run daily and make it require the network-online.target.
network-online.target is not technically about being connected to the internet but just having a network connection.
Yeah, I needed something similar and made a new target that checks whether the system can reach a common website like google