SHARE
TWEET

Bash script to measure server downtime

a guest Apr 4th, 2012 38 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /bin/bash
  2. curl --connect-timeout 1 $1
  3. ret=$?
  4. until [[ $ret -eq 0 ]]; do
  5.         curl --connect-timeout 1 $1
  6.         ret=$?
  7. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top