Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

How do you execute one program from within another?

9 like 0 dislike
Hello
How do you execute one program from within another?
please reply me. i am waiting for your reply.
Thanx
asked 1 year ago by sr_webmaster (21,000 points)

1 Answer

1 like 0 dislike
 
Best answer
The system calls used for low-level process creation are execlp() and execvp(). The execlp call overlays the existing program with the new one , runs that and exits. The original program gets back control only when an error occurs. execlp(path,file_name,arguments..); //last argument must be NULL A variant of execlp called execvp is used when the number of arguments is not known in advance. execvp(path,argument_array); //argument array should be terminated by NULL
answered 1 year ago by eagles11 (179,830 points)

Related questions

9 like 0 dislike
1 answer
6 like 0 dislike
1 answer
asked 2 years ago by marck_don (191,010 points)
7 like 0 dislike
1 answer
11 like 0 dislike
0 answers
asked 2 years ago by DBA-boss (120,990 points)