WWW lynx startup menu

(gps@trix.dircon.co.uk)
30 Nov 1994 11:02:46 +0200

# mkdir /root/l and put this file in there (edit to taste)
# collect as many home pages as you wish
# select the page name from the menu and enjoy
# Graham

# quick and dirty menu of http pages

cd /root/l || exit 3

# temp file to hold a number
N1=/root/l/number

# temp file - generated dialog command
D1=/root/l/dial_1

# input list of pages
L1=/root/l/page_list

# code
NL=`wc -l $L1 | awk '{print $1}'`
echo > $D1 "dialog --menu 'lynx startup page' 23 70 $NL \\"
cat $L1 | tr '"' "'" | sed 's,^\(.*\),"\1"\\,' | nl -ba >> $D1
echo >> $D1
while true
do

if sh $D1 2> $N1
then
N="`cat $N1`"
L=`sed -n ${N}p $L1`
lynx $L
else
stty sane
echo failed
break
fi
done

exit

# this is a sample /root/l/page_list file ...
ftp://src.doc.ic.ac.uk/pub/packages
http://www.fagg.uni-lj.si/cgi-bin/shase
http://sunsite.unc.edu/pub/Linux/NEW.html
http://sunsite.unc.edu/pub/Linux/welcome.html
http://sunsite.unc.edu/ewt
http://www.uni-mainz.de/~kubla/LinuxInt/Welcome.html
http://www.morse.net/
http://www.yggdrasil.com
http://cybersphere.indirect.com/yacc/SLLUG.html
http://cybersphere.indirect.com/yacc/SLLUG.html
http://harvest.cs.colorado.edu/brokers/lsm/query.html
http://harvest.cs.colorado.edu/

--
Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu
PLEASE remember Keywords: and a short description of the software.