Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-13-2012
Registered User
 
Join Date: Jun 2012
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
Question Capturing the login logout details of user

Hi I'm new to Shell scripting .Can anyone please help me how to capture user's login and logout details and load them into a table...
we are using Oracle DB on UNIX
Sponsored Links
    #2  
Old 06-13-2012
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 3,290
Thanks: 27
Thanked 450 Times in 351 Posts
What do you mean by "details"? The time?

If so: you can use the last command, which reads the contents of a file maintained by the system ( /var/log/wtmp ) and displays this in tabular form. See man last for details.

You might want to read this thread, where the usage of "last" and its inner workings were being discussed in-depth.

I hope this helps.

bakunin
Sponsored Links
    #3  
Old 06-13-2012
Registered User
 
Join Date: Jun 2012
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
also I have a script, I need to capture the user IDs which are running that script
    #4  
Old 06-13-2012
Registered User
 
Join Date: May 2012
Posts: 58
Thanks: 5
Thanked 9 Times in 9 Posts
Quote:
Originally Posted by rajmohan146 View Post
also I have a script, I need to capture the user IDs which are running that script
Running the script currently? I think the
Code:
ps

command might help you out
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
AIX Syslog login/logout User hankBuck AIX 5 05-23-2010 11:48 PM
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
detecting login or logout nortypig Shell Programming and Scripting 8 08-27-2006 08:30 PM
Login and logout script jhansrod UNIX for Dummies Questions & Answers 1 06-06-2005 06:54 AM



All times are GMT -4. The time now is 08:23 AM.