Create a process management utility that allows you to kill processes based on their CPU usage. This kind of utility would be especially useful to system administrators (see Chapter 14, “System Administration”).
What will be an ideal response?
The hardest part of this project is designing the command interface. Once that is accomplished,
you merely need to take the output from the ps command, parse it CPU usage information, and
generate a list of the processes that pass the test. Then parse out the process IDs (perhaps with
gawk) to be used in a kill command. One way to put the PIDs into a shell variable would be to
parse out the selected IDs within grave accents (which executes a shell command within a shell
command).
You might also like to view...
Blackboard is an example of ________ software
A) course management B) gaming C) drawing D) utility
If you had to write a function that asked for and returned two ints, which function would NOT work?
A. int Ask(int n); B. int Ask(int *n); C. void Ask(int *n, int &m); D. void Ask(int &n, int &m);
Which of the following is NOT an advantage of Office 365?
A) Microsoft Office 365 changes a company's expenses for software, because it pays only for the number of users who actually use the software B) Because users can log in from multiple places that may not be secure, their accounts are at a risk of having their passwords hacked or stolen by keyloggers. C) Microsoft guarantees that Office 365 will be available 99.9 percent of the time. D) Office 365 provides secure access to and storage of company records and files using geo-redundant data centers
A computer backup must be finished before the shutdown of the system is completed; this relationship between these two tasks is an example of the task dependency type marked ____ in the accompanying figure.
A. 1 B. 2 C. 3 D. 4