How to update your twitter status in linux using bash?
Updating your twitter status using the bash SHell in Linux is easier then you may think, you can update your status using “curl“, curl is a tool to transfer data from or to a server. All you have to do is execute this command showed underneath. This will transfer the status data to the twitter site using the Twitter API.
But of course, you don’t want to be typing all that every time you want to update your twitter status. So I found this website which has a executable twitter bash script.
Replace the user and password with your twitter user id and password. Now save the text to a file called ‘twitter‘ and give the file execute permission. Put this file in any folder in your path. If you want to use this script everywhere on the server make sure it’s located in /usr/local/bin or ~/bin. If you are a user on the server, you may just create the file in your ~/user folder.
Now, how to use the script?
If you have created the twitter file in /usr/local/bin or ~/bin you may use this command anywhere you are in the server.
For best results, enclose the message within quotes. This will prevent problems when using wild card characters like ‘?’
And if have created the twitter file in your ~/user directory, make sure you are in the same folder as the file and then you may use this command.
Not working?
Did you make sure the file has executable rights?
