Advertisement
Guest User

Bash script to measure server downtime

a guest
Apr 4th, 2012
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.13 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment
Advertisement