whta is the use of "exec" command?
Answer / ashu
The exec command will execute a command in place of the
current shell; that is, it terminates the current shell and
starts a new process in its place.
Use of exec command:
exec is oftenly used to execute the last command of a shell
script. This would kill the shell slightly earlier;
otherwise, the shell would wait until the last command was
finished. This practice saved a process and some memory.
Is This Answer Correct ? | 2 Yes | 0 No |
what do u mean by $#,$* in unix programming?
What exactly is a shell?
Script S1 (which copies .dat files from one directory1 to another directory2) run continuously. Write Script S2 which kills S1 first, compresses all .dat files in directory1 and directory2 successfully, re-run Script S1 and stops self i.e. S2.
What is shell application?
Why is used in shell scripting?
What is the use of "shift" command in passing parameters?
What is awk in shell scripting?
What is path in shell script?
What are the various stages of a linux process it passes through?
Determine the output of the following command: name=shubham && echo ‘my name is $name’.
What are filters explain sort with all the options available?
how will you find the total disk space used by a specific user?