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
Write a command sequence to find the count of each word?
What is shift command in shell script?
What are zombie processes?
What is shell geeksforgeeks?
How do I open the shell in cmd?
How to write a function?
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
What is .sh file in mac?
How will you pass and access arguments to a script in linux?
What is computer cli?
Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?
State the advantages of shell scripting?
What shell is bin sh?
What is another name for a bash shell script that you might see?
How to print all the arguments provided to the script?