Skip to content

Instantly share code, notes, and snippets.

@liuzhoou
Created February 24, 2009 07:17
Show Gist options
  • Save liuzhoou/69458 to your computer and use it in GitHub Desktop.
Save liuzhoou/69458 to your computer and use it in GitHub Desktop.
command twitter update
msg=$(echo $@ | sed 's/+/%2B/g;s/ /+/g')
curl --silent --user "username:password" --data-ascii \
"status=$msg" "http://twitter.com/statuses/update.json" > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment