Ubuntu Geek

Ubuntu Linux Tips,Howtos&Tutorials|Edgy,Feisty,Gutsy,Hardy

  • RSS Feed

    subscribe to the ubuntu Geek RSS feed




  • Sponsor

  • Categories

  • Meta

  • Sponsor

  • Archives



  • WidgetBucks - Trend Watch - WidgetBucks.com

Post to Twitter from the Terminal Window

Posted by admin on March 15th, 2008 Email This Post Email This Post

If you want to post to Twitter from the Terminal Window in Ubuntu use one of the following methods.curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS and FILE. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos…), file transfer resume, proxy tunneling.

Install curl in ubuntu

Open the command prompt and enter the following command

sudo aptitude install curl

Enter your root password when it is prompted.

Using curl

Now if you want to post to Twitter use the following command in single line

curl -u yourusername:yourpassword -d status=”Your Message Here” https://twitter.com/statuses/update.xml

You will receive a response containing the XML coding for your post which acts as a confirmation that your post was submitted.

Using wget

Enter the following command in single line

wget -O - –user=YOURUSERNAME –password=YOURPASSWORD –post-data=”status=YOUR NEW STATUS HERE” https://twitter.com/statuses/update.xml

Using ZenTwitter

Download ZenTwitter from here

Installation

Just dump it into your ~/bin directory, open it in the editor of your choice to change the username/password, make it executable (chmod a+x) and add a launcher icon to the panel/menu/desktop of your preferred window manager.

Screenshot

If you want to be notified the next time we write something please subscribe to our RSS feed.Thanks for Visiting!

Related Articles

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>