Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- /usr/local/bin/twitter --oauth /home/tir/.twitter_oauth > /home/tir/grossmaul/tmp
- # difference = new tweets
- DIFF=`diff --changed-group-format='%<' --unchanged-group-format='' /home/tir/grossmaul/tmp /home/tir/grossmaul/twitterhistory`
- # update history
- cat /home/tir/grossmaul/tmp >> /home/tir/grossmaul/twitterhistory
- echo $DIFF | /usr/bin/php /home/tir/grossmaul/gm_in.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement