Possible Duplicate:
exec and fork()
I want to know what exec command is doing.
Fork creates new memory for child process right(With parent data) and when execs is called wha it is doing? Whether overwriting datas in the newly created memory or Parent process memory.