The UNIX and Linux Forums  

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


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
logged out users roshni Post Here to Contact Site Administrators and Moderators 1 07-06-2007 12:02 AM
HP-UX users get logged off while idle. Laoinjo UNIX for Advanced & Expert Users 5 06-04-2007 08:28 AM
how many users logged trichyselva Shell Programming and Scripting 4 05-05-2006 11:17 PM
Users logged in through which NIC cburtgo IP Networking 5 04-28-2006 03:59 PM
All tcp/ip users are logged out Docboyeee IP Networking 2 03-13-2003 09:07 AM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-25-2001
Registered User
 

Join Date: Jul 2001
Posts: 62
Information about users who have logged.

Hi,
Suppose I have a programme called Menu. This menu has various choices as we would expect from a Menu.

Now Can you Please help me as I want the details of the Users to be registered to some file , Whoever has entered this particular Program . Basically to see the username and the time that user had logged in & logged off.


Any suggestions or ideas will be highly appreciated.

Thanks.
Rooh
Forum Sponsor
  #2 (permalink)  
Old 12-26-2001
Jimbo
Guest
 

Posts: n/a
Rooh,
If your programme is a unix script, at script startup you can:

echo `date` `whoami` login >> menu.log

and when they exit the menu, you can:

echo `date` `whoami` logout >> menu.log

If you want to track certain menu selections, for those menu selections, you can:

echo `date` `whoami` Order Report >> menu.log
  #3 (permalink)  
Old 12-26-2001
Registered User
 

Join Date: Jul 2001
Posts: 62
Thanx for ur help. that's perfect.
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:17 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0