1.

____ command is the appropriate way to interrupt a program.(a) kill(b) SIGKILL(c) INT(d) trapThe question was posed to me in homework.Question is from Shell Programming using Various Commands in portion Essential Shell Programming of Unix

Answer»

Right ANSWER is (d) TRAP

For explanation I would say: Any shell script is terminated when the interrupt key is PRESSED. But this is not the appropriate way of doing so. For interrupting any program we should USE the trap command.



Discussion

No Comment Found

Related InterviewSolutions