The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
.logout sharif SUN Solaris 3 12-24-2007 05:08 AM
setup a logfile for user login/logout ??? pwd UNIX for Dummies Questions & Answers 3 04-02-2007 03:10 AM
setup a logfile for user login/logout ??? pwd HP-UX 0 03-28-2007 03:45 AM
logout zam UNIX for Dummies Questions & Answers 2 12-28-2006 07:23 PM
Canīt logout to user inactive lalox UNIX for Dummies Questions & Answers 1 07-31-2004 09:31 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-16-2008
yhacks yhacks is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 21
Smile What happens when user logout?

Hi
When executing some commands, we need to re-login into the account.
What happens when logged out and login ?

Are there any scripts (.bashrc .... ) to be executed or to update system files.
Help Me ..........
  #2 (permalink)  
Old 05-16-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,715
if you source a shell script that has the exit keyword in it, your process ends and you have to login again. No regular user command, like ls, awk, etc. will do that.

Code:
# sourcing a script note the leading dot
. myscript
# sourcing a script on linux - you can do this as well as the dot notation
source myscript
# this will not log you out
myscript
The only other command that can remove your process is
Code:
kill $$
and some oither variations of kill. Any script with the kill $$ command in it will end when the kill command is executed. Then you have to login again.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:39 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0