Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Check for command’s result

if ping -c 1 google.com; then
  echo "It appears you have a working internet connection"
fi
Source by devhints.io #
 
PREVIOUS NEXT
Tagged: #Check #result
ADD COMMENT
Topic
Name
2+1 =