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

What language is bash?

853


What does echo mean in scripting?

958


What is the way to do multilevel if-else's in shell scripting?

1241


Calculate a real number calculation directly from the terminal and not any shell script.

1152


Why is shell scripting important?

977


I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?

1258


What does echo $0 do?

918


How do we create command aliases in a shell?

939


Explain about "s" permission bit in a file?

997


Is shell and terminal the same?

995


What is a boot block?

963


What can you do with powershell?

1067


What is bash eval?

938


What is the difference between scripting and coding?

971


What is batch file programming?

1105