https://stackoverflow.com/questions/18123211/checking-host-availability-by-using-ping-in-bash-scripts