title: Script to check connection every 5 minutes and write result to file (without ping) in LINUX
body: <p>I need to check my connection to a spesific port every 5 minutes, currently i can't use ping command, so i need other alternative to do this.I want to execute this command in shell script</p>
  
  <p>Can someone help me to show some example for this case?</p>