-
Website
http://www.ChristopherSPenn.com/ -
Original page
http://www.christopherspenn.com/2007/06/01/how-to-twitter-from-terminal-on-the-mac/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
larrylawfer
9 comments · 1 points
-
Ari Herzog
18 comments · 19 points
-
Brian Christiansen
5 comments · 2 points
-
Christopher S. Penn
92 comments · 5 points
-
Christina
8 comments · 3 points
-
-
Popular Threads
-
Advanced Social Media Course is Live!
4 days ago · 9 comments
-
Sissy words and painful mirrors
5 days ago · 2 comments
-
Heroism as the antidote to evil
1 week ago · 3 comments
-
How to avoid missing the best days of your life, part 2
1 week ago · 3 comments
-
Solving Chunky Spaghetti Sauce with Social Media
2 weeks ago · 5 comments
-
Advanced Social Media Course is Live!
#!/usr/bin/env sh
curl -u yourusername -d status="$1" -s -o /dev/null http://twitter.com/statuses/update.xml
I work with ubuntu 7.10
I've follow the steps but when I type in the terminal:
tw
and ask for my host password I enter my twitter pass, but it says:
Couldn't resolve host
The host pass and the twitter pass are different?
Thanks
Only to add the script works in gnu/linux OS too
Regards
Cool. I'll be looking into Chris Brogan's question. I'm definitely interested in seeing Tweets in the Terminal.
crimeboy@groselia:~$ cat twi
#!/bin/bash
# requires curl
###########################
######## CONFIG
USER=YOULOGIN
PASS=YOURPASS
URL="http://twitter.com/statuses/update.xml"
###############
curl -u $USER:$PASS -d status="$*" -s -o /dev/null ${URL}
I like you script, its simple and sweet. I only have to say that its probably not a good idea to advise people to chmod something to 777. This would enable other users (who would have access to your machine or network) to see not only the password which is hard coded in the script, but to change the script and insert something malicious. Perhaps something a bit more conservative like 700 would be a better choice. This value would mean that the owner (you) has read, write and execute permissions on the file, but no one else. I know you probably, and rightfully trust the people on your network, but hey--its the same amount of typing and you get free security :).
Kind Regards,
Jesse