Skip to content

Instantly share code, notes, and snippets.

@jorgemsrs
Created June 14, 2011 10:45
Show Gist options
  • Save jorgemsrs/1024665 to your computer and use it in GitHub Desktop.
Save jorgemsrs/1024665 to your computer and use it in GitHub Desktop.
Uptime script
echo -n `date` ' ';curl --write-out "Time Lookup: %{time_namelookup} Time Connect: %{time_connect} Time to FB: % time_starttransfer} Download Size: %{size_download} HTTP Status: %{http_code} Num Connects: %{num_connects} Num Redirects: %{num_redirects}\n" --silent --output /dev/null __YOUR_WEBSITE.domain.tld__HERE >> /tmp/uptime.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment