Intermittently check to see if your Internet connection is up and running.
- Create and paste the code for
connectivity_checker
into a corresponding file in /usr/local/bin and make sure tochmod +x /usr/local/bin/connectivity_checker
- From your command line, type
crontab -e
- Within the crontab editor, make a new line
- Enter
*/5 * * * * /usr/local/bin/connectivity_checker
to check every 5 minutes