Click to See Complete Forum and Search --> : porting code from NT to LINUX


yoseft
March 15th, 2001, 10:02 AM
In my NT application I launch processes, each with its command line, with CreateProcess function, and wait for them to exit with WaitForMultipleObjects function.

I can not find the equivalent functionality with Linux:
fork function does not take a command line parameter.
exec functions replace the current image and do not return.

Where can I find documentation / help ?

Thank you

yoseft

digdas
October 2nd, 2001, 09:39 AM
Easy, use both:
First process: fork, then there are two processes, and one can be exec-ed with the process you would like.

Perhaps system() is what you would like to do?