![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 03:02 AM |
| HP-UX users get logged off while idle. | Laoinjo | UNIX for Advanced & Expert Users | 5 | 06-04-2007 11:28 AM |
| how many users logged | trichyselva | Shell Programming and Scripting | 4 | 05-06-2006 02:17 AM |
| Users logged in through which NIC | cburtgo | IP Networking | 5 | 04-28-2006 06:59 PM |
| All tcp/ip users are logged out | Docboyeee | IP Networking | 2 | 03-13-2003 01:07 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 ![]() |
|
||||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|