Login/Logout Information in report

Hello Experts,

Am very much new to the bash shell scripting.I need a small favour,I need a shell script to get Login and Logout information in a csv file.Can some one help me out please.

Regards,

This hasn't much to do with shell scripting. How the login information is stored is dependent on the system you use, so you will have to say which system that is first. Post the output of the command uname -a , it should contain the necessary information.

You might want to try the "last" command, which is available on most systems. It might contain the information you need. Notice, though, that it gets it information from a file. It can be tampered by someone with the necessary rights and the necessary knowledge, so that is not an auditable log.

I hope this helps.

bakunin

1 Like