04-08-2004
my sco release 5 shows this
DEV|rram!last -n4
User Line Device PID Login time Elapsed Time Comments
rram p2 ttyp2 2271 Thu Apr 8 17:33 00:00 logged in
srikanth ftp ftp2263 2263 Thu Apr 8 17:18 00:00
kannan ftp ftp2258 2258 Thu Apr 8 17:16 00:00
rgopal ftp ftp2256 2256 Thu Apr 8 17:16 00:00
Raguram R
10 More Discussions You Might Find Interesting
1. 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
2. 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
3. UNIX for Dummies Questions & Answers
How do I disable the auto logout for remote logins to a host (2 Replies)
Discussion started by: lethgowerboy
2 Replies
4. 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
5. 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
6. 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
7. 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
8. Shell Programming and Scripting
Good Evening all,
After spending the last week or so reading many posts I decided to register and join in. This is my first post on the forum so please forgive me as im new to this, Im after some help in throwing together a quick basic script without using expect to change the password on several... (4 Replies)
Discussion started by: mutley2202
4 Replies
9. UNIX for Dummies Questions & Answers
hi,
i want to make a session logout in c++/unix which will redirect the user to the login page if the user is idle for 5mins (1 Reply)
Discussion started by: anubhav sharma
1 Replies
10. Red Hat
Hello,
I have this issue on a new server I just built. It is a RHEL 6.7 build. I use VNC to connect to the server from my windows machine. When I login to the Server in morning using VNC I get this error: "Automatic logout, this session is configured to log out after a period of inactivity. I... (0 Replies)
Discussion started by: bitlord
0 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