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).

Computer Science & Information Technology

You might also like to view...

When the weekly sales value of a retail store results in 0, the field will present the word New, assuming the stores were not opened

Indicate whether the statement is true or false

Computer Science & Information Technology

As the number of users on the network grows, the machine that hosts the proxy server should be upgraded.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Character spacing is a Word feature that allows changing the default spacing between characters

Indicate whether the statement is true or false

Computer Science & Information Technology

In a PivotTable report, ________ are the fields use to categorize the data by rows

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology