[K12OSN] Script question
Julius Szelagiewicz
julius at turtle.com
Fri Nov 2 18:38:18 UTC 2007
On Fri, 2 Nov 2007, Dimitri Yioulos wrote:
> I've created a script that gives a user the ability to do certain tasks. The
> user is brought right to the menu at login by adding a reference to the
> script in .bash_profile. One of the menu options is to exit the menu. Right
> now, that simpy dumps the user back to his shell prompt. What I'd like it to
> do is to log the user out of the system. I've tried coming up with
> something, and have googled, but can't seem to come up with the solution. Is
> it possible? If so, can anyone help?
Dimitri, it is rather easy:
in .bash_profile have the following:
my_script
exit
After "my_script" is executed, the .bash_profile takes over and logs out
the user.
julius
More information about the K12OSN
mailing list