年忘れコーディング
自動でtwitterに新年の挨拶を投稿するツール!
それではよいお年を!
#!/bin/sh # # auto-akeome.sh # # yamaneko <yamaneko1212@gmail.com> # created at Thu Dec 31 23:18:50 2009 # # twitter id user="id" # password passwd="password" # message for happy new year message="あけおめことよろ!!!!!" nowtime=`date +%s` newyeartime='1262271600' # check curl while test ${nowtime} -lt ${newyeartime} do nowtime=`date +%s` sleep 1 done if ! curl -u ${user}:${passwd} -d status=${message} https://twitter.com/statuses/update.xml then echo 'failed' else echo 'ok' fi
※ちょっと間違ってたので修正