Update Twitter via Wget or Curl
How to update twitter from command line using Wget and Curl.
Variables are just for better understanding, you can use this code writing directly usernames, password and messages.
-O / -o options are needed for downloading everything to /dev/null
-q / -s options are needed for not showing any output
#!/bin/bash # Setting up User e Pass TW_USER="twit_username"; TW_PASS="twit_mysecret"; # Setting up a Message TW_MESSAGE="What I want to say"; # # Using Wget # wget -q \ -O /dev/null \ --http-user=$TW_USER \ --http-passwd=$TW_PASS \ --post-data="status=$TW_MESSAGE" \ "http://twitter.com/statuses/update.xml" # # Using Curl # curl -s \ -o /dev/null \ -u $TW_USER:$TW_PASS \ -d status="$TW_MESSAGE" \ "http://twitter.com/statuses/update.xml"