12
10
I am trying to write a command that will launch a few terminal tabs, execute something in each tab, and have each tab stay open after the command in finished, so I can look at the output and type more commands in each tab
something like this:
gnome-terminal --tab -e "ls -a" --tab -e "ls"
but the problem with this is that the tabs close as soon as the "ls" commands finish. Does anyone know how to make the tabs stay open?
Actually
wmctrl
is not required. – nedim – 2016-07-14T10:11:45.147Thanks. This works pretty well. I have to add a
sleep 1
after the ctrl+shift+t to get it to work for me though. I'll accept this if nothing else comes up soon – None – 2010-08-04T05:07:03.113Yeah - i found i had to have
sleep 2
to make it work 100% of the time. Great solution though - i'm now opening 8 tabs, which ssh into various servers, start various processes etc, using this: my morning setup is now totally scripted :) – Max Williams – 2013-02-21T10:00:02.057