perfect! thank you Oliver Grawert! :) made my day :) it's working! : ping -W 1 -c 4 google.com >& /dev/null && ping -W 1 -c 4 www.yahoo.com >& /dev/null || echo "no internet connection" _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos