Hi,
I wrote this script, how can trap the user until
the choice is 7
----------
#! /bin/csh -f
#
# This script will let user access internet
#
# These are the Choices
#
echo " 1. lynx \
2. mosaic <-<- Requires a graphics interface\
3. gopher\
4. ftp\
5. telnet\
6. archie\
7. exit"
# Here we do the enterning
echo -n "Please Choose one from above "
set choice="$<"
# Here we see the choices
if ("$choice" == "1" ) then
/usr/local/bin/lynx http://www/homepage.html
endif
if ("$choice" == "2" ) then
/usr/local/bin/mosaic http://www/homepage.html
endif
if ("$choice" == "3" ) then
/usr/more/bin/gopher scsu.ctstateu.edu
endif
if ("$choice" == "4" ) then
/usr/ucb/ftp
endif
if ("$choice" == "5" ) then
/usr/ucb/telnet
endif
if ("$choice" == "6" ) then
clear; echo "Login as archie";sleep 1; telnet ds.internic.net
endif
if ("$choice" == "7" ) then
exit (0)
endif
----------
Any Help App...
Thanx
Bikesh
TUM
My views are my own not my employers' view, Hell they don't pay me enough.
_|_ _|_
(___)- - - - - - - - - - - - - - - - - - - - - - - - - -(___)
|/| Southern Conn. State University |/|
|/| Senior System Admin. CS Dept. |/|
|/| Phone (203) 392- |/|
|/| http://www.scsu-cs.ctstateu.edu:/bikesh.html |/|
V V