Hi,
I want to write a C program that can launch an executable in a new shell different from the controlling shell. So what I did is :
1) Used the system("gnome-terminal") function to launch a new shell
2) Opened it as file using its tty name (like : /dev/pts/<> )
3) wrote something like : fwrite("./hello\n", sizeof("./hello\n"), 1, fp);
I got a new terminal, it opened like a file, fwrite() was also done but './hello' did not work like a command. It stood there like a dead text.
Please help!!!!