Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

Shell script to generate report for each user ?

unix linux shell

This topic has been archived. This means that you cannot reply to this topic.
No replies to this topic

#1 beingswarupmall


    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 01 February 2017 - 04:50 AM

I have 3 user in my linux machine let's say a,b,c .By Using last command I am able to identify list of last logged in user and by w command who is logged in and what they are doing and by history command all command used by particular user all will be shown.
Now I want  to write shell script which will show how much time ideal,how much they are logged in and how much command they have run for each user.
How to do this?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download