Search code examples
c++qtprocessterminalos.execl

How to open new terminal, execl


Are there any ways to open new terminal using execl() or execlp. Smt like gnome-terminal -x? Already tried it before path, doesn't work. If not, mb it is possible to open new terminal when process starts running?


Solution

  • One of my use of execl in order to open xterm:

    execl ("/usr/bin/xterm", "xterm", "-bd", "black", "-bg", "black",
    "-fg", "green", "-geometry", "70x15+330+190", "-T", "ftp", "-e",
    "ftp", (char *) 0);