I think you didn't understand me, i will explain my self better now.
I don't have a prefer to a specific way, i tried use pipe(), myfif(), socket, and pipe with bash ( | ) - the whole ways no seems to be working.
for example i tried to use :Code:
pipe(fd)
...
fork()
...
if child
execl("ventrilo_srv", "ventrilo_srv", NULL)
else //Parent
read()
and etc.. but the whole ways gave me the stdout only after some thousands of bytes.. (weird :S ).
i tried using setvbuf() for getting the stdout to be flushed every byte - as you see it wasn't helpful.
If you think your function - "quick_thread" - can help me in this case, i will be grateful to get a link :)
Or if you have another solution now after you understood what i meant i will be great!
Thanks and sorry for making you crazy :P