05-15-2011
4,
0
Join Date: May 2011
Last Activity: 28 May 2011, 12:26 PM EDT
Posts: 4
Thanks Given: 0
Thanked 0 Times in 0 Posts
2. Write a shell script that produces some summary information of the system at a particular moment
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
2. Relevant commands, code, scripts, algorithms:
3. The attempts at a solution (include all code and scripts):
4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).
I am trying to figure this out and I am not getting it at all can someone please help with this as I am ignorant to shell scripting. below is the required information
1. 1. A list of the people currently logged in and for how long they are up.
2. A list of processes currently running, showing the userid, process id, CPU and memory usage, and command name. Sort these by either userid or process id (your choice, you don't have to support both), but make sure whichever you sort by is the first column.
3. Another list of processes, showing only the top 10 based on memory usage, sorted by memory usage. Include the same fields as above, but showing memory usage in the first column.
Hint: Make use of ps, who, echo, mail ....
###############################################
Here is what I have so far
ps -e | sort -n -r | head -n 10
Not sure where to go from here!!!
Baker college of Jackson, Michigan USA
Instructor Sohail Sadiq, LUX/211---- Not an online course so do not have a direct link to virtual class!