Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以使用 execl() 或 execlp 打开新终端。Smt 像 gnome-terminal -x 吗?在路径之前已经尝试过,不起作用。如果没有,mb可以在进程开始运行时打开新终端吗?
我使用 execl 来打开 xterm 的一种方式:
execl ("/usr/bin/xterm", "xterm", "-bd", "black", "-bg", "black", "-fg", "green", "-geometry", "70x15+330+190", "-T", "ftp", "-e", "ftp", (char *) 0);