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
What are the different types of commonly used shells on a typical linux system?
How to replace following lines, catch (DAOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } catch (BOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw e; } catch (Exception e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } Needs to be changed in to, catch (DAOException e) { AppException.handleException (null, null, e, null, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); } catch (BOException e) { AppException.handleException (null, null, null, e, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 0); } catch (Exception e) { AppException.handleException (null, null, null, null, null, e, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); }
What is the way to do multilevel if-else's in shell scripting?
What is the difference between grep and egrep?
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
How to print all the arguments provided to the script?
What is echo $shell?
What is batch file programming?
What are the different communication commands available in the shell?
What does path stand for?
Explain about echo command?
What is an sh file?
What is c in shell script?
What is the first line of a shell script called?
How do I run a powershell script?