I have to open a tab in gnome-terminal with 'emacs -nw' (application) in the newly opened tab.
$who
user :0 2016-08-24 10:39 (:0)
user pts/0 2016-08-24 14:03 (:0)
I wrote a script after runing 'who' command.
#!/bin/bash
xdotool key ctrl+shift+t
/usr/bin/emacs -nw $1 > /dev/pts/1
While running this script its opening the new tab. But emacs is opening in same gnome-terminal.
Any one can explain me why its happening like this? and can explain how to open the emacs -nw (application) in new tab without disturbing current gnome-terminal.