Exforsys
+ Reply to Thread
Results 1 to 5 of 5

How to write a shell program that displays login and logout times

This is a discussion on How to write a shell program that displays login and logout times within the Shell Programming forums, part of the Operating Systems category; Hi all, Could you please tell me How to write a shell program that displays login and logout times of ...

  1. #1
    nishasingh is offline Junior Member Array
    Join Date
    Jun 2005
    Answers
    1

    How to write a shell program that displays login and logout times

    Hi all,
    Could you please tell me How to write a shell program that displays login and logout times of users.

    An early reply solicited.

    Thnx & regards
    jennifer


  2. #2
    Sivaram is offline Junior Member Array
    Join Date
    Nov 2004
    Answers
    2

    Tracking login and logout times

    Hi Jennifer,

    I don't know how useful it would be this information now, but you can look at this page if you are still looking for tracking the login and logout times.

    http://www.linuxquestions.org/questi...d.php?t=329769

    Please let me know if this worked or not, I can suggest someother method.

    Good luck,

    Cheers,
    Ram.


  3. #3
    machireddy is offline Junior Member Array
    Join Date
    Nov 2006
    Answers
    1

    machireddy

    Hi everyone


  4. #4
    psiva_exforsys is offline Junior Member Array
    Join Date
    Jun 2007
    Answers
    8

    how to display the login details

    if you want display the login details in your current machine or current server terminal. you can issue the below command.

    $ who
    $ whoami

    Regards,
    Siva.P


  5. #5
    Hélio de Araújo Estrêla is offline Junior Member Array
    Join Date
    Mar 2011
    Location
    São Caetano do Sul, Brazil
    Answers
    2
    Try:

    last |grep <loginame>

    Quote Originally Posted by nishasingh View Post
    Hi all,
    Could you please tell me How to write a shell program that displays login and logout times of users.

    An early reply solicited.

    Thnx & regards
    jennifer



    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...