Java Reference
In-Depth Information
Exercise 23.2
: Write a program that runs
exec
on its command-line ar-
guments and prints the output from the command, preceding each line
of output by its line number.
Exercise 23.3
: Write a program that runs
exec
on command-line argu-
ments and prints the output from the command, killing the command
when a particular string appears in the output.