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? |
Welcome to LQ!
Show us your work, research, napkins. |
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:
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. |