For closing terminal without killing script/command we use
& operator at last while calling command. Like:
Here I used
gedit as an example command
Same thing I want to do on another terminal (from current terminal). I am using following command(s) to run script/command onto another terminal:
gnome-terminal -e 'gedit'
gnome-terminal -x bash -c 'gedit'
But here if I close new opened terminal, then script/program runnung by
[command] also killed. So I've tried using
& as follows:
gnome-terminal -e 'gedit' &
gnome-terminal -x bash -c 'gedit' &
But none of above is working.
So, How can I achieve this : From current
gnome-terminal, Execute command in another
gnome-terminal and close that (new-opened) terminal after launching command without killing running