![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 04:10 AM |
| setup a logfile for user login/logout ??? | pwd | HP-UX | 0 | 03-28-2007 04: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 10:31 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 .......... |
|
||||
|
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. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|