04-14-2008
Hmmm.... This is curious.
I never knew about logout.
On my system (aix running ksh), I have a man entry for logout, which indicates the command resides at /usr/bin/logout, but I don't have a man entry for exit, nor does a which exit find the command.
The man entry for logout also indicates:
Purpose
Stops all processes on a port.
Only fear of the unknown repercusions prevents me from entering logout to see what would happen...
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
LOGIN(3) BSD Library Functions Manual LOGIN(3)
NAME
login, logout, logwtmp -- login utility functions (DEPRECATED)
SYNOPSIS
#include <util.h>
void
login(struct utmp *ut);
int
logout(const char *line);
void
logwtmp(const char *line, const char *name, const char *host);
DESCRIPTION
The login(), logout(), and logwtmp() functions are DEPRECATED; use pututxline(3) instead.
These functions operate on the database of current users in /var/run/utmpx and the system log file. Superuser permission is required.
The login() function updates the /var/run/utmpx files with user information contained in ut (after converting to a struct utmpx, as described
in pututxline(3)).
The logout() function removes the entry from /var/run/utmpx corresponding to the device line.
The logwtmp() function adds an entry to the system log file. Since login() will add the appropriate entry during a login, logwtmp() is usu-
ally used for logouts.
RETURN VALUES
logout() returns non-zero if it was able to find and delete an entry for line, and zero if there is no entry for line in /var/run/utmpx.
However, there is no error indication due to lack of permissions.
FILES
/dev/*
/var/run/utmpx
SEE ALSO
pututxline(3), utmp(5), utmpx(5)
BSD
December 14, 1995 BSD