November 20143
October 20143
September 20142
July 20141
March 20146
February 20141
January 20145
December 20135
November 20132
October 20134
August 20134
July 20132
Full Archives

Sun, 11 Mar 2007

Twitter + Bash == Bad Idea

I'm not sure about the basic idea behind Twitter but after signing up, having a little look and noticing the Net::Twitter CPAN module I decided to implement a really bad idea...

  #!/usr/bin/perl -w
  use strict;
  use warnings;
  use Net::Twitter;

  my $bot = Net::Twitter->new(
                              username => "username",
                              password => "password"

  chomp(my $doing = <>);
  $doing =~ s/^\s+\d+\s+//;


To make it 'useful' you'll need to run the following in your bash shell: PROMPT_COMMAND='history | tail -n 1 | /path/to/twitter_post.pl' and tada! People really will know what you're doing RIGHT NOW. Ahem, sorry.

Posted: 2007/03/11 13:55 | /geekstuff | Permanent link to this entry

books career cloud events firefox geekstuff linux meta misctech movies nottech perl programming security sites sysadmin tools tools/ansible tools/commandline tools/gui tools/network tools/online tools/puppet unixdaemon

Copyright © 2000-2014 Dean Wilson :: RSS Feed