Article View: ca.unix
Article #1099Re: How to Make a Menu?
From: Eric Williams PCB x5577
Date: Thu, 22 Dec 1994 02:19
Date: Thu, 22 Dec 1994 02:19
62 lines
3530 bytes
3530 bytes
In the hopes of giving this article wider visibility...
In article <3d5ef5$85q@hustle.rahul.net>, KevinSinclair@Computer.com writes:
|> Hello,
|>
|> Our school needs help from an Internet guru - we want to add a menu to
|> our Internet account.
|>
|> I am a parent helping out some local schools get access to the Internet.
|> We have an ascii Internet account, similar to a Netcom shell account. We
|> want to have a menu come up when the kids logon, instead of putting them
|> at the prompt. This menu would offer them access to Pine, to certain
|> newsgroups only, and to a special IRC server that is password-accessed
|> and is separate from the regular global IRC. We don't want them doing
|> anything else. When they finish Pine, for example, they would find
|> themselves back in the menu.
|>
|> Our system is sparc-sun-sunos4.1.3_U1. We have Perl here, so that would
|> be a good choice. But the main thing is that it be customizable, so that
|> I can change it later. I mainly need a start. I can learn how to modify
|> it. And it must not be interruptable, like with control+z to put it into
|> the background. I would have to have access to the prompt, though... how
|> would that work? Some kind of secret password or something.
|>
|> If anyone can help me it would be greatly appreciated. Thanks,
|>
|>
|> --
|> Kevin
|>
|> Virtual: Kevin@Computer.com <Kevin Jeffrey Sinclair>
|> Physical: San Carlos, CA USA <south of San Francisco>
Some (not-so) elementary things you could try:
1) If you are a real good C guru, you can try writing your
own menu program and using it instead of /bin/sh
for each of the children's password entries.
2) You could try the same thing with a script, though
I don't know whether that would work. Also, with a script
it may not be able to catch all interrupts.
3) Some Unicies have a restricted shell (rsh) which may
partially implement what you want; rsh will not allow you
to create any files outside of the current directory and
will not allow you to change the directory from within
the shell itself. I don't know SunOS intimately so I can't
say whether SunOS has it.
Anyway, I'm reposting your message to some other
newsgroups, in the hopes that someone Out There
has more knowledge than I do. And I know You're Out There... :-)
--
--------------------------------------------------------------
eric_williams@mentorg.com
My views; I don't think my company will want 'em!
(At least not in this newsgroup...)
God is real, unless declared integer.
-- unknown
Technical Details
Message-ID:
<3danno$q87@oddball.sjc.MENTORG.COM>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!rutgers!usc!howland.reston.ans.net!pipex!uunet!newsgw.mentorg.com!oddball.sjc.mentorg.com!wv.mentorg.com!ewillReferences:
<3d5ef5$85q@hustle.rahul.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1103af,204bd6c51800f4bb,start X-Google-Attributes: gid1103af,public X-Google-Thread: 10183f,204bd6c51800f4bb,start X-Google-Attributes: gid10183f,public X-Google-Thread: fc89c,3af828169be56d05 X-Google-Attributes: gidfc89c,public X-Google-ArrivalTime: 1994-12-21 18:50:10 PST Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!rutgers!usc!howland.reston.ans.net!pipex!uunet!newsgw.mentorg.com!oddball.sjc.mentorg.com!wv.mentorg.com!ewill From: ewill@wv.mentorg.com (Eric Williams @ PCB x5577) Newsgroups: ca.unix,comp.unix.programmer,comp.os.linux.misc Subject: Re: How to Make a Menu? Date: 22 Dec 1994 02:19:36 GMT Organization: Mentor Graphics, Wilsonville, Oregon, USA Lines: 62 Distribution: world Message-ID: <3danno$q87@oddball.sjc.MENTORG.COM> References: <3d5ef5$85q@hustle.rahul.net> NNTP-Posting-Host: hpewill.sjc.mentorg.com