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 |
How do I run a bin bash script?
How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?
Why do we use shell scripting?
How can I send a mail with a compressed file as an attachment?
How can I set the default rwx permission to all users on every file which is created in the current shell?
What is the lifespan of a variable inside a shell script?
How to find duplicate record in file using shell script?
0 Answers IBM, Saama Tech, Wipro,
What language is used in terminal?
Hi, i want to zip the files that generates automatically every few minutes (files generated are in .arc extension)....any body write a script for this... thanks in advance
How to find all the files modified in less than 3 days and save the record in a text file?
What is eval in shell script?
Hi, I want to practise Unix korn shell scripting which i learnt 2 yr bfr. plz suggest software i can use to practise.