Sunday, 13 January 2013

Tweeting uptime

I thought I'd write a quick bash script to tweet uptimes for my machines using TTYtter.

It's a simple enough script which I intend to run once a week (so as not to pollute followers timelines).

So, here it is:

TWEET="Uptime for $(hostname) is $(date '+%d/%m/%Y') $(uptime)" 
ttytter -status="$TWEET"

No comments: