I have to write a script to monitor a mysql connection. Before I do this I want to test if my machine can access Internet by pinging the DNS server of my provider. I have seen very complicated ICMP functions. Does it not exist an obvious and easy to make a ping and return a boolean ?
Start Free Trial