title: trying to make a shell script that sends me and email if an ip address goes down
body: <p>Hello
  i am trying to make a shell script that checks for a ping response. if there is no response i want it to send me an email telling me that it is down. </p>
  
  <p>What i am trying to do is to receive an email if one of my switches go down.</p>
  
  <p>this is going to run as a cronjob btw
  thank you in advance for any help.</p>