LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How logout from login-menu bash script? (https://www.linuxquestions.org/questions/linux-general-1/how-logout-from-login-menu-bash-script-18376/)

MikHud 04-12-2002 12:01 PM

How logout from login-menu bash script?
 
I want to have a simple apps menu, in bash script, for users that don't want access to the shell.

How can I provide a "Logout" option to do the equivalent of 'Ctrl-D' and log the user out of the system instead of just returning to a shell prompt, and also to log the user out if they do Ctrl-C in the menu?

At present I am running the menu script from the users' .bash_profile as follows:-

/usr/bin/menu-script
exit 0

Any other advice on the subject of login menu scripts would be welcome.

Thanks
Mike


All times are GMT -5. The time now is 03:04 PM.