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?
Asked
Active
Viewed 1,106 times
1 Answers
0
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);

Nox
- 932
- 1
- 9
- 27
-
after -e beggins path and par for my process, i guess? – Max Nov 23 '14 at 01:08
-
You need to change it a little bit that one is for ftp. – Nox Nov 23 '14 at 01:10
-
oh i see, but it works musc slowlier than terminal(. One thing is interesting for me. PID executed with xtern will be the same that gave fork? – Max Nov 23 '14 at 01:16
-
Yes should be the same. – Nox Nov 23 '14 at 01:19