*BSD News Article 51263


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!vtc.tacom.army.mil!agis!news2.net99.net!news.cais.net!newsfeed.internetmci.com!news.mathworks.com!tank.news.pipex.net!pipex!howland.reston.ans.net!torn!ccshst05.cs.uoguelph.ca!ccshst01.cs.uoguelph.ca!bbarber
From: bbarber@uoguelph.ca (DYE JOB)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: Shell Menu, and other questions...
Date: 12 Sep 1995 21:27:59 GMT
Organization: University of Guelph
Lines: 26
Message-ID: <434u0v$4mj@ccshst05.cs.uoguelph.ca>
References: <DE2Eo0.DG4@boi.hp.com> <DEqAty.7J8@boi.hp.com>
NNTP-Posting-Host: ccshst01.cs.uoguelph.ca
X-Newsreader: TIN [version 1.2 PL2]

The Green Dragon (dragon@boi.hp.com) wrote:
: The Green Dragon (dragon@boi.hp.com) wrote:
: > I'm looking for a nice shell menu that I can setup for users who telnet into
: > my host machine.  Something I can set up so they can change their password,
: > read mail, edit files, ...
: [stuff deleted]

: Never mind, I found several, but couldn't get a single one to compile
: on BSDi.  So we dumped BSDi and went for a more supported OS.

hmmm.  Really, a shell script should do the trick.  It has nothing
to do with your OS.  Learn to use "case" in your (bash) shell scripts.
ie:

read answer
case $answer in

	p) passwd;;
	l) lynx;;
	e) echo "enter a filename: "; read namofile; vi $nameofile;;
...

Honestly, in one day you can build an entire front end to LaTeX and
text processing!

-Blaine