06. 07. 09
Turbo Tweeting
curl -u username:password -d status="Lets's have a excellent ancient tweet. http://goodoldtweet.twt" http://twitter.com/statuses/update.xmlThe username:password is honestly obvious - just replace it with your own Twitter account login details. The text following -d status= is your tweet message (I included my blog url). See below Sponsored Links
Now, this produces output to the screen and is helpful when you want to know that the command has worked and what it did. But, this is no excellent if you want to automate the command. Screen output will cause an error in scheduled running of scripts and applications. Fortunately there is a way around this. I shall show you how to do this in Linux as I currently don't know the equivalent in Windows (it may be the same in Windows but don't count on it).
curl -u username:password -d status="Lets have a excellent ancient tweet. http://goodoldtweet.twt" http://twitter.com/statuses/update.xml > /dev/null 2>&1This makes sure that all output is cleanly dealt with without causing errors. The shell script in which you place the command can now be scheduled as you wish.



















































