Answer Posted / 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 |
Post New Answer View All Answers
Explain about gui scripting?
How do I debug a shell script?
What is meant by dos operating system?
What does $@ mean in shell?
What is shell variable?
Which shell is the best?
Why is used in shell scripting?
Why are there shells on the beach?
What are filters explain sort with all the options available?
How can I set the default rwx permission to all users on every file which is created in the current shell?
How do I run a script on mac?
How does shell scripting work?
What is echo in shell?
How would you compare the strings in a shell script?
What does echo $0 do?