Hello every one I want to ask a question that what is “simple exec” I have heard it some where and I have searched for it but don’t get any useful answer can any one tell me
- A program
- some thing related to operating system
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
An exec system call replaces your current running process with some program stored in disk. It only keeps the system segment of the original process (meaning: PID, file descriptors, and other system stuff)
It is provided by the Linux/Unix kernel and there are several ways to call it, check the various exec definitions according to POSIX in http://pubs.opengroup.org/onlinepubs/009604499/functions/exec.html. A simple demostration program would be:
That program prints a line and executes ‘ls’, so you would see the message, then the output of ls, and that’s it. The last line isn’t displayed because your process was replaced.