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:-
Any other advice on the subject of login menu scripts would be welcome.