Subscribe by EmailTop Posts TodayRecent comments
Top Ranked Users
Invite your peers
|
Twitter from a Unix Command Line73
vote
Microblogging seems to be all the rage nowadays. We recently wrote about a popular microblogging platform called twitter. Wouldn't it be nice to send a twitter post from your Linux command line. It seems to be the perfect application for command line folks. Here are some instructions on how to create your own twitter script. Step 1) Step 2) Example: vi /home/bin/twitter #Add the following lines curl --basic --user "username:passwd" --data-ascii "status=`echo $@|tr ' ' '+'`" "http://twitter.com/statuses/update.json" -o /dev/null #Don't forget to change the username and passwd to match your twitter account details Step 3) Example: chmod 755 /home/bin/twitter Step 4) Run your script: /home/bin/twitter Here is my first twitter message Happy microblogging! Vassilios If you enjoyed this posting please subscribe to our RSS feed or submit it to your favorite social networks. |
User loginNavigationtags for Twitter from a Unix Command LineKey word tags |
Post new comment