Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-14-2004, 06:39 PM   #1
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Rep: Reputation: 30
Menu instead of shell for a specific user in ssh?

I remember a long time ago someone gave me access to restart his chat server (Wasn't irc)

I telnetted in

it gave me a menu like:

Press the appropriate key:
1 - shutdown server
2 - start server
3 - restart server
4 - clear props file
5 - restore pat file

Now later on I ended up creating a chat server myself -- it definately didn't come with such stuff to do that (create a customized limited crappy shell)

I'm now interested in such, in where, a user can get a menu and select an option -- when the option is selected it will execute the corresponding BASH script, program, or whatever.

How could I customize a telnet session to do this and show such a menu when they log in rather than a shell prompt?

Old 05-14-2004, 07:04 PM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
Read the info file for bash. There is a command called select which presents a menu of options for the user to select.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh forwarding : bind to a specific interface flupke Linux - Networking 9 12-09-2011 06:24 PM
How to make a specific command(s) work in a specific shell only naren_0101bits Linux - Newbie 3 08-28-2005 02:24 PM
View a specific tty session using SSH? intermod Linux - General 2 02-03-2004 02:16 PM
Allow SSH from specific IP's ONLY. m15a4 Linux - Security 3 12-29-2003 05:02 AM
Can SSH Telnet listen for specific IP? tikvah Linux - Security 2 01-19-2003 11:00 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration