Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

whta is the use of "exec" command?

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


Please Help Members By Posting Answers For Below Questions

Explain about gui scripting?

1094


How do I debug a shell script?

1071


What is meant by dos operating system?

1056


What does $@ mean in shell?

1041


What is shell variable?

918


Which shell is the best?

993


Why is used in shell scripting?

1001


Why are there shells on the beach?

1153


What are filters explain sort with all the options available?

1344


How can I set the default rwx permission to all users on every file which is created in the current shell?

1429


How do I run a script on mac?

1104


How does shell scripting work?

1112


What is echo in shell?

1107


How would you compare the strings in a shell script?

985


What does echo $0 do?

977