Hey everyone, thank you for your replies, not sure what you ment with your reply Massa, can you elaborate a bit more please?
Zentara i will try your solution now and see how that works for me. Thanks!
Comment on Re^2: help with Fork and terminal output
Well, very seldom do you see someone trying to write to xterms as a means of output, so here is a bit of a thread example, that shows how neat a gui can be. This works on the idea that threads can share filehandles thru the fileno. Threads are not always the best solution, because they tend to gain memory, but for 1 shot scripts, it's easy.
If you really need to fork, search for shared memory ipc, or sockets ipc.