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

Which of the following is the amount of times per year that a specific incident occurs?

A. SLE B. ARO C. ALE D. MAC

Computer Science & Information Technology

To access the Web, you'll need software called a(n) ____ that displays Web pages and helps you navigate from one page to another.

A. seeker B. browser C. application D. port

Computer Science & Information Technology