I have long said, Twitter is not a product, it’s a feature. (Although the general population is not listening to me.) Since several sites now support some type of status, I wanted an easy way to update them at once. A while ago I started using ping.fm. Being the CLI guy that I am, I wrote a script to post my updates via Ping.fm to Twitter, Facebook, and LinkedIn. A few have asked, so here you go:
1 2 3 4 5 6 7 8 | #!/usr/bin/ruby require 'rubygems' require 'xmpp4r-simple' jabber = Jabber::Simple.new('username@example.com', 'private') jabber.deliver('pingdotfm@gmail.com', ARGV.join(' ').to_s) sleep (5) |
