Hello dear frnds.
Plz help me if it’s possible 4 u
I wanna write a code in my linux in VIM editor that it must check a server by sending ping to it and send an e-mail to admin and aware him or her that server is down.
It is not complete, I know that. Wt should I do?
Plz guide me. Thanx a lot.
keimasi
#version 0.0001
#write by keimasi
#date 23 dec 2010
Clear
read -p “ please enter your IP : “ IP
ping -c1 $IP
if [$? !=0]
then
mail -s “ server is down” admin
fi