5
2
in iTerm, you can send a command to execute simultaneously on a set of already opened tabs. Is there a way to do this in linux (with gnome-terminal preferably)?
for instance, supposed that I had 10 tabs already ssh'd into foo@host1.com and sudoed to root and wanted to send a command to run on all 10 tabs.
The goal of this is to be able to stay within a set of tabs and command them, rather than having to use expect scripts to ssh and elevate and run commands. Basically, like how you could do in iTerm.
The answer will probably depend on what terminal emulator you are using. – chepner – 2012-06-05T23:47:08.147
use cluster ssh (cssh)? Not really want you want, but kinda close. – Zoredache – 2012-06-06T00:20:20.280
@chepner this would be for gnome-terminal – jabbertalker – 2012-06-08T17:57:37.560
From the little searching I've done, it does not appear that
gnome-terminal
supports sending input to multiple tabs. I think you'd have to switch to something likeTerminator
orkonsole
– chepner – 2012-06-08T19:19:26.267While not a direct answer to your question, rundeck lets you run commands on dozens or hundreds of servers at once. http://rundeck.org I use it on all the servers I administer
– spuder – 2013-08-19T04:48:13.043