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 tool would a technician use to attach a new cable to a port on a network patch panel?

A) Tone generator B) Loopback plug C) Punch-down tool D) Multimeter

Computer Science & Information Technology

A(n) ________ shows the relationship between input and output documents.

A. top-down analysis B. grid chart C. investigation report D. checklist

Computer Science & Information Technology