Guest User

Untitled

a guest
Feb 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. status=$(curl -I www.google.com > /dev/null 2>&1; echo "$?")
  4. if (( $status > 0 )); then
  5. echo "Houston we have a problem!"
  6. else
  7. echo "all good!"
  8. fi
Add Comment
Please, Sign In to add comment