Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
How logout from login-menu bash script?
Name: Mike Hudson Date: April 12, 2002 at 10:57:58 Pacific
Comment:
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.
Summary: I need help with this basic script writing using bash shell. I just started using Linux and the company I work for is trying to instill this system. How do I write a script that will create a menu to ...
Summary: Sometimes my panel crashes when I login to Genome. It is very annoying where I need to restart again. Is it a bug? Or is there any way to fix this problem? Is there any command in bash shell to logo...
Summary: Hi. I am trying to write a shell script to run a program with dynamically changing command line arguments. Here is what I've got so far: #!/bin/bash count=0 steps=100 starts=10 filename="file2.txt" fo...