I don\'t want to use system() in my C program, because system(3) blocks and this is not what I want. What is the optimal way to do it?
Use fork() to create a new process and then use system() (or any exec function) in it. The original process will then be able to continue executing.
fork()
system()
exec