I'm trying to write a program that creates a new process (runs another program) but i couldn't find exactly what I need:
system(command) - very nice, very easy to use, but it WAITS for the created process to return
exec family of functions - they REPLACE the current process with the new one, and I sure don't want that
what i want is to create a new process (like system() does), but also leave the current one alive and running.
i suspect it has smth to do with the fork function but i don't know how to use it (what does it return ??)