04-14-2008
Exit or logout
When I want to close my session I can use exit or logout, and a lot of manuals use both of them indistinctly. So, Is there any difference between exit or logout?? Or are both of them exactly the same command??
I forgot to mention that I am using a RedHat Unix.
Thanks for your help.
Kinai.
Last edited by kinai; 04-14-2008 at 10:27 AM..
Reason: Mention the type of Unix that I am using.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm receiving an exit code 64 in our batch scheduler (BMC product control-m) executing a PERL script on UX-HP. Can you tell me where I can find a list of exit codes and their meaning. I'm assuming the exit code is from the Unix operating system not PERL. (3 Replies)
Discussion started by: jkuchar747
3 Replies
2. Red Hat
Hello all -
I'm finishing up a script that I wrote.
This is what I did:
I added some lines to the .bash_profile that will call my startup script:
cd $HOME/startup
./startup.scr
This startup script will create some directories, move some files, and then startup an application:
cd... (4 Replies)
Discussion started by: Heron
4 Replies
3. UNIX for Dummies Questions & Answers
Every time the ksh script completes I got message - logout. I don't want to see this message....
Can someone give me a clue
Thanks in advance.
ZAM
SunOS 5.9 Generic_118558-19 sun4u sparc SUNW,Sun-Fire-880 (2 Replies)
Discussion started by: zam
2 Replies
4. Shell Programming and Scripting
We have an application that uses the csh shell as the default. We can not change this as when we upgrade it will change back to csh. We have several people that log in with this id. I would like to create a .logout exit script to audit what transactions were performed, termal, etc.
Does... (3 Replies)
Discussion started by: 2dumb
3 Replies
5. Solaris
I want to execute script while exiting a session, to gather session details. How to implement this in Solaris 10 (3 Replies)
Discussion started by: sharif
3 Replies
6. Shell Programming and Scripting
hi,
im executing one script i,e sh test.sh
i want to log out the sessing after script execution.
and i do't want to user command like this.
sh test.sh ; exit
can i exit the session with the use of script
pl help (1 Reply)
Discussion started by: arvindng
1 Replies
7. Ubuntu
Hi, I'm new to Linux and this forums. I was working on a logout script
and was wondering if anyone could help me out.
What I'm trying to do is to delete the content of the ~/tmp/ directory
and also to perform a check if any processes are currently running befor logout.
this is what I have ... (1 Reply)
Discussion started by: zexin
1 Replies
8. HP-UX
Hi
I am using UNIX version.
HP-UX HP-UNIX B.11.00
I am writing a script which on certain condition should logout of unix.
But with exit command i am not able to get this..
Plz suggest how i should logout of the session directly. (9 Replies)
Discussion started by: manish.s
9 Replies
9. Post Here to Contact Site Administrators and Moderators
Hi Admin,
I am living in singapore. When i use the unix.com in office, it works well ( in that time, it says "you are somewhere around USA(some country) - because my proxy is USA"
Once i come to home and connects, it keeps logout... is that any settings i need to change ?
---------- Post... (1 Reply)
Discussion started by: itkamaraj
1 Replies
10. Shell Programming and Scripting
Hi
In one of the script I am seeing some thing like exit 7,exit 1,exit 2,exit 3,exit 9,exit6.What is the difference between all of this exit.Can anyone help here please (3 Replies)
Discussion started by: ginrkf
3 Replies
LEARN ABOUT DEBIAN
apache2::sitecontrol::user
Apache2::SiteControl::User(3pm) User Contributed Perl Documentation Apache2::SiteControl::User(3pm)
NAME
Apache2::SiteControl::User - User representations
SYNOPSIS
my $user = Apache2::SiteControl->getCurrentUser($r);
# $r is the apache request object
# Checking out the user's name:
if($user->getUsername eq 'sam') { ... }
...
# Working with attributes (session persistent data)
my $ssn = $user->getAttribute('ssn');
$user->setAttribute($r, 'ssn', '333-555-6666');
# Removing/invalidating session for the user
$user->logout($r);
DESCRIPTION
The SiteControl system has a base concept of a user which includes the user's name, persistent attributes (which are persistent via
session), and support for user logout.
It is assumed that you will be working from mod_perl, and some of the methods require an Apache request object. The request object is used
by some methods to coordinate access to the actual session information in the underlying system (for storing attributes and implementing
logout).
User objects are created by a factory (by default Apache2::SiteControl::UserFactory), so if you subclass User, you must understand the
complete interaction between the factory (which is responsible for interfacing with persistence), the SiteControl, etc.
The default implementation of User and UserFactory use AuthCookie to manage the sessions, and Apache::Session::File to store the various
details about a user to disk.
If you are using Apache2::SiteControl::User and Apache::SiteControl::UserFactory (the default and recommended), then you should configure
the following parameters in your apache configuration file:
# This is where the session data files will be stored
SiteControlSessions directory_name
# This is where the locks will be stored
SiteControlLocks directory_name
These two directories should be different, and should be readable and writable by the apache daemon only. They must exist before trying to
use SiteControl.
METHODS
getUsername Get the name that the current user used to log in.
getAttribute($name) Get the value of a previously stored attribute. Returns undef is there is no value.
setAttribute($request, $name, $value) Add an attribute (scalar data only) to the current session. The current apache request object is
required (in order to figure out the session). Future versions may support more complex storage in the session. This attribute will stay
associated with this user until they log out.
logout($request) Log the user out. If you do not pass the current apache request, then this method will log an error to the apache error
logs, and the user's session will continue to exist.
SEE ALSO
Apache2::SiteControl::UserFactory, Apache::SiteControl::ManagerFactory, Apache2::SiteControl::PermissionManager, Apache::SiteControl
AUTHOR
This module was written by Tony Kay, <tkay@uoregon.edu>.
COPYRIGHT AND LICENSE
This modules is covered by the GNU public license.
perl v5.14.2 2006-03-17 Apache2::SiteControl::User(3pm)