Script bash/shell Check Connection Internet
ping -c 1 google.com > /dev/null
if [[ "$?" != 0 ]]
then
echo "Checking For Internet: FAILED"
echo "The Connection is Disconnected"
echo "This File Request Internet Connection"
echo && sleep 3
else
echo " Checking For Internet: CONNECTED...!!!"
fi
if [[ "$?" != 0 ]]
then
echo "Checking For Internet: FAILED"
echo "The Connection is Disconnected"
echo "This File Request Internet Connection"
echo && sleep 3
else
echo " Checking For Internet: CONNECTED...!!!"
fi
Trima Kasih Atas Pengunjungannya... Jangan lupa balek lagi... :3
1 comments:
di recode boleh saja guys
Posting Komentar