1847088 Members
5799 Online
110262 Solutions
New Discussion

creat menu

 
augusto cossa
Frequent Advisor

creat menu

Hi,

I would like to create a menu where the user will have to choose options to be run.

The script will contain start/stop background processes and oracle database.

help on it.

Thanks,

Augusto
8 REPLIES 8
Andreas Voss
Honored Contributor

Re: creat menu

Hi,

put you a simple script at attachment.
Make changes for your purposes.
Change in /etc/passwd the shell entry to this script, ie: script is /etc/menu.sh
user::123:45::/tmp:/etc/menu.sh

Regards
federico_3
Honored Contributor

Re: creat menu


Here is the script in wich you shoul insert the action you would perform!

In the .profile of the user insert at the end

/etc/menu.ksh
exit

this way whenever the user logs in it will appear the menu with the tasks to be performed and afterwards he will logged out !


Federico
augusto cossa
Frequent Advisor

Re: creat menu

Andreas,

Thanks a lot for the script.

I would like to assign to you 10 points but it's unassigned. How can I assign you points?

Thanks
Andreas Voss
Honored Contributor

Re: creat menu

Hi,

i don`t know why you cannot assign points - perhaps it works at this reply.
Thanks for your comment.

Regards
augusto cossa
Frequent Advisor

Re: creat menu

Federico,

Thanks a lot for the script.

I would like to assign to you 10 points but it's unassigned. How can I assign you points?

Thanks
federico_3
Honored Contributor

Re: creat menu

Is not there near every reply a tag with upon written : ASSIGN POINTS ?

Geetam
Frequent Advisor

Re: creat menu

You can read the forums, without logging in, but then it shows [unassigned] in the points.

If you log in, it shows the buttons to assign points (because then the system knows that you are the person who asked the question)
Josef Nordtome
Advisor

Re: creat menu

Hello Augusto,

You might also try using the "select" command. It creates a numbered menu based on options entered in the command string. It is very easy to modify and add on to. Here is an example of it's use. Hope this helps.

Josef
Life is something to do when you can't get to sleep.