commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
There are 5 alternatives - vote for the best!
An improvement of the original (at: http://www.commandlinefu.com/commands/view/2872/update-twitter-via-curl) in the sense that you see a "from cURL" under your status message instead of just a "from API" ;-) Twitter automatically links it to the cURL home page.
Doesn't require password (asks for it instead)
This version of tweet() doesn't require you to put quotes around the body of your tweet... it also prompts you for password. It will still barf on a '!' character.
Found it on snipt, pok3, is it yours?
I put my user = m33600, the password and the status was my robot message:
Settima robot message: ALARM ZONE 3 (sent via command line).
Now bots may have their identity on twitter...
Type the command in the terminal and press enter to create the tweet() function. Then run as follows:
tweet MyTwitterAccount "My message goes here"
It will prompt you for password. Make sure that you use escape "\" character in message for showing varialbles or markup.
If you can do better, submit your command here.
You must be signed in to comment.