Skip to content

Instantly share code, notes, and snippets.

@linhxhust
Created May 9, 2017 00:56
Show Gist options
  • Save linhxhust/7490d0e174f9b3c76e1ba0e7f98d3fd0 to your computer and use it in GitHub Desktop.
Save linhxhust/7490d0e174f9b3c76e1ba0e7f98d3fd0 to your computer and use it in GitHub Desktop.
#!/bin/bash
ping -c 3 127.0.0.1
if [ $? -ne 0 ]; then
printf "Couldn't ping to 127.0.0.1"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment