If I execute the following command in LXTerminal:gnome-terminal &gnome-terminal gets opened. But as soon as I close the LXTerminal, gnome-terminal will be closed as well because it's a child process. Is there any way to open the second process independently?
How to open a process from terminal without becoming child process?
gnome terminal
It's not possible to start a process without it being the child. When you execute an external command, under the hood the shell calls fork() followed by execvp(). You can prevent it from getting killed when the parent shell dies.One way is to use nohup:nohup gnome-terminal &Another option if you are using bash is to disown the process:gnome-terminal & disown