Submit Response

SparkStats

Submit Response is a weblog by Jack Mottram, a journalist who lives in Glasgow, Scotland. There are 1283 posts in the archives. You can subscribe to a feed. This post was made on January 30, 2007 and belongs in the mac, web category. The previous post was Today’s Links (27/01/07), and the next post is Today’s Links (29/01/07).

Pointless Twitter Automation

Here’s a little thing that will update Twitter when you wake up your computer.

Save the following in a text file somewhere (I put it in /bin/ and called it twitterwakeup.sh), replacing the stuff in italics with your email, password and cheery waking up message:

#! /bin/sh

curl --user yourname@yourdomain.com:yourpassword -F status="Your cheery waking up message!" http://twitter.com/statuses/update.json

(That second bit should all be on one line.)

Make it executable:

sudo chmod u+x /bin/twitter.sh

Install Bernhard Baehr’s handy Sleepwatcher daemon.

Make a file called .wakeup in your home directory, and put the full path to your twitterwakeup.sh script in it.

That’s it.

Posted at 1am on 30/01/07 by Jack Mottram to the mac, web category.
Permalink · Add to del.icio.us
Tags: , ,

  1. what?

    Posted by RjMottram at 9am on 30.01.07

  2. Hee. I should make a special front page for you that hides any gobbledegeek.

    Posted by Jack Mottram at 11am on 30.01.07

  3. hmmmm…very interesting!
    Thanks google

    Posted by BoldWess at 6pm on 17.01.08

Leave a comment:




Alternatively, you can log in using OpenID



If you know HTML, you can use these tags in your comment: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Alternatively, you can use Markdown syntax.

Safari hates me

Recent Posts

Categories

Archives

Elsewhere

Search