Hello to you too,
 
Do you want to retreive the output of the program then use popen("comand").
If you just want to execute the program and wait for it to return, use system("command").
if you want it to run in the background use first fork(), then exec("comand",....),
it's a little more complicated than the previous two. 
Check the man pages.  ;-)
 
/ Henrik
-----Ursprungligt meddelande-----
Från: cana rich [mailto:[EMAIL PROTECTED]]
Skickat: den 25 september 2002 15:45
Till: [EMAIL PROTECTED]
Ämne: HowTo : Launch a program from a C program

Hello,

    I have a RedHat 7.2 and i am making a C program which launch an other program. Can somebody tell me what command i have to use? (for exemple in windows, i would use "Winexec(path_to_program,0);" 

Thanks

Canarich



Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français !

Reply via email to