Twitter status updates from the shell

I updated my wiki script (Yawki) earlier, it now produces an RSS 2.0 feed and notifies Twitter when I add or edit a wiki page.

Yawki is a 30k shell script so I needed to find I way to notify Twitter via the shell. A little Googling later and I had the answer :-)

curl -u yourusername:yourpassword -d status="Your Message Here" -k 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. So, you might want to append…

>& /dev/null

…so you can discard the output. If you want to be fancy, check $? to see whether it’s nonzero ;-)

Posted on January 17, 2009 at 2:55 pm by Martin · Permalink
In: Messaging · Tagged with: , , , ,

One Response

Subscribe to comments via RSS

  1. Written by Flexion.Org » Identi.ca status updates from the shell
    on January 23, 2009 at 4:42 pm
    Reply · Permalink

    [...] am getting to like this micro blogging thing and having figured out how to update Twitter status via the shell I thought I do the same for Identi.ca. The solution is practically identi.cal, see what I did [...]

Subscribe to comments via RSS

Leave a Reply