Possible Duplicate:
How to invoke another terminal for output programmatically in C in Linux
I am programming a client-server application and I want to create a debug window.
On the server side I want to print the incoming and outgoing communication on a separate terminal. I am able to spawn a terminal through gnome-terminal but how to write on it and not on other terminals.