LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Shell script to generate report for each user ? (https://www.linuxquestions.org/questions/programming-9/shell-script-to-generate-report-for-each-user-4175599179/)

beingswarupmall 02-07-2017 06:25 AM

Shell script to generate report for each user ?
 
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?

Habitual 02-07-2017 06:54 AM

Welcome to LQ!
Show us your work, research, napkins.

rtmistler 02-07-2017 07:04 AM

Hi beingswarupmall and welcome to LQ.

The thread you started doesn't contain enough information to enable us to help you. We understand that Linux can be intimidating for new members, and we really do want to help. That said, please understand that LQ is not a help desk, customer service line for a product you purchased or willing to do your homework (although we are happy to assist you with specifics, if you show some effort of your own!). We're a 100% volunteer organization that wants to help you help yourself.

Additionally, this thread is being moved to the Programming forum to give better exposure for your question and the nature of it, however please realize that if you do not reply to improve the question, it will be difficult for others to offer you any assistance

Here are a couple tips that will enable us to help you moving forward:
  1. When asking a question, be sure to provide as many relevant details as possible. You should include the distribution and version you're using, along with hardware details, application version and exact error messages where applicable.
  2. Using a descriptive title will vastly increase the number of members who see your thread, and therefore make a response significantly more likely.
  3. If you're actively troubleshooting an issue you should also include any steps you've already taken.
  4. You may want to include how what you are experiencing differs from what you expected to experience.
  5. Before posting, have you used the search function to ensure your question hasn't been asked before?
  6. You can edit your post by clicking the EDIT button in the bottom right corner of your message.

If you are unwilling or unable to ask questions in a manner that allows us to help you, it's unlikely our community will be able to provide you a solution. Unfortunately, serial offenders who show wanton disregard for this request after multiple pointers may be asked to seek help elsewhere. We truly hope that isn't necessary, and assure you Linux and Open Source are extremely rewarding and well worth the learning curve in the long run.

Some additional reading that may help:
LQ Search
LQ Sitemap
LQ Site FAQ
How to ask technical questions to get quality answers


All times are GMT -5. The time now is 04:31 PM.