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
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
What makes c shell a more preferable option than the bourne shell?
How do we delete all blank lines in a file?
What is the first line of a shell script called?
What is a boot block?
What is shell scripting used for?
i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..
I have 2 files and I want to print the records which are common to both.
What is the difference between scripting and coding?
Write a shell script to get current date, time, user name and current working directory.
What lives in a shell?
What is the use of "$?" Sign in shell script?
How can we find the process name from its process id?
Write a script to print the first 10 elements of fibonacci series.
How do I stop script errors?