Advertisement
Guest User

Bash script to measure server downtime

a guest
Apr 4th, 2012
87
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
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement