1.

To spawn a child of our own choice for running the script, we can use ___ command.(a) ps(b) pr(c) sh(d) $$I got this question by my college professor while I was bunking the class.Origin of the question is Shell Programming using read Command and Command Line Arguments topic in division Essential Shell Programming of Unix

Answer»

Correct choice is (c) sh

The EXPLANATION: We know that shell SCRIPTS are executed by a child shell. But we can also explicitly SPAWN a child of our own choice by using the sh COMMAND along with script name as an argument. When used in this way, the interpreter LINE is ignored by the shell.



Discussion

No Comment Found

Related InterviewSolutions