Advertisement
pr4wn

Update of last tweets to cowsay

Apr 24th, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | None | 0 0
  1. #!/bin/sh
  2. TWEET=$(mysql -u pwntter -ppwntter -h localhost pwntter -e "select DATE_FORMAT(created_at, '%W  %D %M %Y at %H:%i : ') as cdate, text from tweets where screen_name = 'pr4wn' and text NOT RLIKE '^@' order by id desc limit 1;")
  3.  
  4. SAY=`echo $TWEET | sed -e 's/^cdate text //'`
  5.  
  6. echo
  7. echo  "Last tweet by me [@pr4wn]"
  8. echo
  9. cowsay -e "@@" -W 72 $SAY
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement