admin scripts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
409 B

  1. #!/bin/bash
  2. export http_proxy="http://proxy.dcu.ie:8080"
  3. WEBDIR="/webtree/redbrick/htdocs"
  4. TMPDIR="/tmp"
  5. FILE="twitter.rss"
  6. if [ ! -d $WEBDIR ]; then
  7. exit 1
  8. fi
  9. /usr/bin/wget -O $TMPDIR/$FILE http://twitter.com/statuses/user_timeline/28599864.rss &> /dev/null
  10. # failure test
  11. if [ $? -ne 0 ]; then
  12. exit 0
  13. fi
  14. sed -i 's/RedBrickDCU: //' $TMPDIR/$FILE
  15. mv $TMPDIR/$FILE $WEBDIR/$FILE
  16. chmod 644 $WEBDIR/$FILE