LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-14-2004, 05:39 PM   #1
jon_k
Member
 
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?

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

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


Reply


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 05:24 PM
How to make a specific command(s) work in a specific shell only naren_0101bits Linux - Newbie 3 08-28-2005 01:24 PM
View a specific tty session using SSH? intermod Linux - General 2 02-03-2004 01:16 PM
Allow SSH from specific IP's ONLY. m15a4 Linux - Security 3 12-29-2003 04:02 AM
Can SSH Telnet listen for specific IP? tikvah Linux - Security 2 01-19-2003 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:31 AM.

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