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.
Combining idea of @ibid idea to what you want. Write to log file and than execute:
This will span xterm , which executes “tai -f log file” command.