Originally published at: Bash Script If Ping Fails Then Automatically Reboot Server - Computer How To
In this article I will show simile bash script if ping fails then reboot Linux server. You can easily modify this script for example if ping fails then send notification to email, or if ping successful then do something. Create a File SSH login into your Linux server as root, and create new text file…