Wednesday, December 28, 2005

SCRIPT: Slashdot reader script

#!/bin/sh
# write to file, chmod +x then run in terminal window.
# Wrex Allen 08.12.03

while :
do
        clear
echo "Current Slashdot Headlines"
echo "http://www.slashdot.org/"
date
# Uncomment the following and replace with your proxy ip:port, tehn comment out the second line containing curl, for proxy.
#curl -x your.proxy.ip.here:proxyport -s http://slashdot.org/slashdot.xml | \
curl -s http://slashdot.org/slashdot.xml | \
sed -n -e '/title/p' | \
sed -e 's/<[^>]*>//g' > /tmp/slash.txt
cat /tmp/slash.txt
sleep 600
done

No comments: