[K12OSN] Script question

James P. Kinney III jkinney at localnetsolutions.com
Fri Nov 2 18:51:07 UTC 2007


On Fri, 2007-11-02 at 14:08 -0400, Dimitri Yioulos wrote:
> Hello, all.
> 
> First, as an off-topic item, congratulations to Eric, Scott, Francis, and 
> Stephen., for their work on local apps.  Most excellent!
> 
> Now, my question:
> 
> 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?

At the end of the script that is launched from .bash_profile add a
logout at the last line. Make sure the script that runs the menu is not
ending with a "&". This way the scripts get run in order. When one
finishes the next runs until the last one, logout, then they are out.
> 
> With thanks,
> 
> Dimitri
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
> 
-- 
James P. Kinney III          
CEO & Director of Engineering 
Local Net Solutions,LLC        
770-493-8244                    
http://www.localnetsolutions.com

GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/k12osn/attachments/20071102/1624fac5/attachment.sig>


More information about the K12OSN mailing list