I want to launch a process from within my c program, but I don\'t want to wait for that program to finish. I can launch that process OK using system() but that always waits.
In the end, this code appears to work. Bit of a mis-mash of the above answers:
pid = fork(); if (!pid) { system("command here &"); } exit(0);
Not quite sure why it works, but it does what I'm after, thanks to everyone for your help