Quantcast
Channel: Open gnome terminal programmatically and execute commands after bashrc was executed - Super User
Viewing all articles
Browse latest Browse all 3

Answer by cYrus for Open gnome terminal programmatically and execute commands after bashrc was executed

$
0
0

When you use the -e option the gnome-terminal will run that command without starting a new shell (you can even run something like: gnome-terminal -e gedit), so if you want to run a command into the bash shell into a new terminal/tab you have to do something like this:

gnome-terminal -x bash -c "command"

But note that when "command" ends the terminal/tab will end too.


Viewing all articles
Browse latest Browse all 3

Trending Articles