Skip to content

Instantly share code, notes, and snippets.

@samsonjs
Created August 22, 2010 20:54
Show Gist options
  • Select an option

  • Save samsonjs/544272 to your computer and use it in GitHub Desktop.

Select an option

Save samsonjs/544272 to your computer and use it in GitHub Desktop.
loop do
uptime = `uptime`.split(' ')[-3]
user = "YOUR_USERNAME"
`curl http://loadaverages.elliottkember.com/statistics -s -d statistic\\[computer_id\\]=#{user}\\&statistic\\[uptime\\]=#{uptime}`
puts uptime
sleep 5
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment