Friday, March 5, 2010

Shell Script for Tweeting from Command Line using bti !!

BTI is a small tool provided by default in Ubuntu ( a Linux Distro) for Tweeting to Twitter or Identi.ca. If not in your distro you can easily download it from your Distro's Repo. This script is for Twitter but it can be easily changed for Identi.ca or other Microblogging site (check man bti, for that) !! You can directly tweet with bti by writing bti --host="twitter" --account="Username" --password=UrPassword" but since password it shown as it is here so its not safe and a desirable thing so I made this script !!


#! /bin/bash
#For Tweeting via CLI with the help of bti

echo "Enter your Username";
read Username
echo "Enter your Password";
read -s Password
bti --host="twitter" --account="$Username" --password="$Password"



 Run it by:

First add execution permission for the owner
chmod u+x Tweet4mCLI #Tweet4mCLI is name of your script file
and then
./Tweet4mClI

  Just Enjoy tweeting Right from your Terminal !!

This is my First useful ( atleast for me) Shell Script hope same for you!

No comments:

Post a Comment