Pages

Thursday, December 31, 2009

உபுண்டுவில் command lineல் இருந்தபடியே twitterல் post செய்ய

உபுண்டுவிலிருந்தபடியே twitterல் post செய்ய கீழ்கண்டவழிமுறைகளில் செய்யலாம்.

முதலில் டெர்மினலில் கீழ்கண்ட நிரலை நிறுவிக்கொள்ளவேண்டும்.

#sudo apt-get install curl பின்னர்

/bin அடைவினுள் twitter.sh என்ற கோப்பினை உருவாக்க வேண்டும்.

#sudo gedit /bin/twitter.sh

இதில் கீழ்கண்ட வரிகளை சேர்த்துகொள்ளவேண்டும்.

#!/bin/bash
curl -u USER:PASSWORD -d status="$*" http://twitter.com/statuses/update.xml > /dev/null
echo "Message sent!"

இதில் user மற்றும் password என்ற இடத்தில் உபயோகிப்பாளரின் user name மற்றும் password கொடுக்கவேண்டும்.


பின்னர்

#sudo chmod 755 /bin/twitter.sh என்று கட்டளையிட்டு twitter.sh என்ற கோப்பினை executable கோப்பாக மாற்றவேண்டும்.

பின்னர் டெர்மினலில்

#twitter.sh hello இங்கு helloவிற்கு பதில் ஏதெனும் message டைப் செய்யலாம்.

இப்போது twitterல்

2 comments:

ariyaluraan said...

Hi I am new for ubuntu. I really like the appearance of Ubuntu. I have installed ubuntu9.10 in my desktop. After that, I can do nothing with ubuntu. Even I can't run .mp3 files. It asks for Repositories. I don't have the internet connection. I was searching for those files in the net (externally) and I downloaded all of them. But there is no information how to load those files. All the helps are nonsenses. They all are saying type this comment, type that comment. Where to type? what to type? nothing works. Useless helps in the internet. This is the place where ubuntu/linux fails. I am just a utilizer, no need of me to become a ubuntu master. I spent many nights in the system. I got frustrated and have formatted and installed windows xp. If you can help me about how to make things works in offline, then I will re-install ubuntu 9.10. Kindly help me.

arulmozhi r said...

Welcome ariyaluraan and thanks for your visiting please obtain a dvd disk for ubuntu from http://ubuntu-tam.org/vasal.This dvd is sent from chennai.