Thanks both for the point; I had seen this thread before: system("xterm -e yourchatprogram") is OK for a program --like a chat client-- that remains running. But what I want is firing up the terminal, runnig a single command (like ls) that outputs to the terminal and ends, and then the shell/terminal staying alive and processing CLI input till the user close it explicitely.
When the single command ends the terminal closes, comes it from system, fork/exec or backtics.
Re^3: Forking an operative terminal
Replies are listed 'Best First'.