Skip to content

Instantly share code, notes, and snippets.

@jaymzcd
Created February 25, 2010 17:25
Show Gist options
  • Save jaymzcd/314764 to your computer and use it in GitHub Desktop.
Save jaymzcd/314764 to your computer and use it in GitHub Desktop.
#!/bin/bash
u=`uptime | awk -F" " '{print $3"d", $6"u"}'`
l=`uptime | awk -F" " '{print $10,$11,$12}'`
h=`hostname`
disk_free=`df -h | head -2 | tail -1 | awk -F" " '{print "/",$5,$4}'`
curl -u YourEmail:YourPassword -d status="`echo $h: disk $disk_free";" users $u";" LA: $l`" http://twitter.com/statuses/update.xml >& /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment