ge0rgeJ

PiFace - Garden_Irrigation - SuperTweet Bash

Aug 28th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.46 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. # Configuration Variables
  4. TWIT_USER="Your_Twitter_Account"
  5. TWIT_SECRET="SuperTweet_Password"
  6.  
  7. # Other Variables
  8. TWIT_URL="http://api.supertweet.net/1.1/statuses/update.json"
  9. TWEET=$(echo "$*"|cut -c -140)
  10.  
  11. curl -u $TWIT_USER:$TWIT_SECRET -d "status=$TWEET" $TWIT_URL -s > /dev/null
  12.  
  13. # Save The File as tweet in /usr/bin
  14. # Chmod 755
  15. # In Terminal at the command prompt type -  tweet "Your Message"
  16. # Check Twitter and your message will be there
Advertisement
Add Comment
Please, Sign In to add comment