I am running 16 debug processes simultaneously with our adapted gdb (called e-gdb). The processes are invoked by a bash script, using:
gnome-terminal -e 'e-gdb -x gdbNN.cmd progNN.e'
To manage the multiple sessions I can open multiple terminals using the --geometry
option to arrange them tiled on my screen. Alternatively, I can use the --tab
option to have them all in one terminal.
When the sessions end I close the terminal(s) with a click (I don't want it to auto-close).
So, with multiple terms I need to click 16 times while with tabs I click once, but I have to switch between tabs to see the session results. I would like tiled tabs in a terminal so I can view them simultaneously and close all in a single click.
Is there a way to tile tabs? If not, can I close all debug terminals in one action?
UPDATE: Is there an easy way to kill multiple terminals based on their title? I am using the -t
option to name the windows. Is there something like kill -name '*DBG*'
?
One could close all of them with
killall gnome-terminal
, but that would also close other running gnome-terminals.The solution that I found for myself to this problem was to use
wmctrl
. It allows for very granular control over your windows. So I have a set of terminals titledAcyrid-Live
andAcyrid-Beta
.wmctrl -F -c Acyrid-Live
will only close that windowIt's a pretty useful set of tools.
http://tomas.styblo.name/wmctrl/
Edit: Yes I realize this is an oldish thread, but it's also one of the most popular results when searching how to close terminals by title, so I figured I would post a successful solution.
If the controlling script you mentioned allows for it, you could try adding the following to it:
Credit: http://www.thegeekstuff.com/2009/09/multitail-to-view-tail-f-output-of-multiple-log-files-in-one-terminal/