Skip to main content
explain why I wrote it here.
Source Link

My little to mill:

#!/bin/sh

[ $# -lt 1 ] && {
        echo "Use: $0 <file>
        where file includes list of server"
        exit 9
}

cp ~/.config/terminator/config ~/.config/terminator/config.`date +%Y%m%d-%H%M`

cat ~/.config/terminator/config.`date +%Y%m%d-%H%M`|grep -v "^.plugins" >~/.config/terminator/config

inc=5
echo "  [[terms]]" >>~/.config/terminator/config
for i in `cat $1` ; do
        echo "   [[[window${inc}]]]"
        echo "       type = Window"
        echo "   [[[terminal${inc}]]]"
        echo "     profile = default"
        echo "     order = 0" 
        echo "     type = Terminal"
        echo "     parent = window${inc}"
        echo "     command = ssh $i"
        inc=$((inc+1))
done >>~/.config/terminator/config

echo "[plugins]" >>~/.config/terminator/config

Will make terminator config (layout terms) for many windows in one group.

EDIT: At least, terminator is able to send broadcast into every terminal in same group. This function is switchable - so you may enable it write 'su -' then disable and write owen password to onces terminals and enable it again.

My little to mill:

#!/bin/sh

[ $# -lt 1 ] && {
        echo "Use: $0 <file>
        where file includes list of server"
        exit 9
}

cp ~/.config/terminator/config ~/.config/terminator/config.`date +%Y%m%d-%H%M`

cat ~/.config/terminator/config.`date +%Y%m%d-%H%M`|grep -v "^.plugins" >~/.config/terminator/config

inc=5
echo "  [[terms]]" >>~/.config/terminator/config
for i in `cat $1` ; do
        echo "   [[[window${inc}]]]"
        echo "       type = Window"
        echo "   [[[terminal${inc}]]]"
        echo "     profile = default"
        echo "     order = 0" 
        echo "     type = Terminal"
        echo "     parent = window${inc}"
        echo "     command = ssh $i"
        inc=$((inc+1))
done >>~/.config/terminator/config

echo "[plugins]" >>~/.config/terminator/config

Will make terminator config (layout terms) for many windows in one group.

My little to mill:

#!/bin/sh

[ $# -lt 1 ] && {
        echo "Use: $0 <file>
        where file includes list of server"
        exit 9
}

cp ~/.config/terminator/config ~/.config/terminator/config.`date +%Y%m%d-%H%M`

cat ~/.config/terminator/config.`date +%Y%m%d-%H%M`|grep -v "^.plugins" >~/.config/terminator/config

inc=5
echo "  [[terms]]" >>~/.config/terminator/config
for i in `cat $1` ; do
        echo "   [[[window${inc}]]]"
        echo "       type = Window"
        echo "   [[[terminal${inc}]]]"
        echo "     profile = default"
        echo "     order = 0" 
        echo "     type = Terminal"
        echo "     parent = window${inc}"
        echo "     command = ssh $i"
        inc=$((inc+1))
done >>~/.config/terminator/config

echo "[plugins]" >>~/.config/terminator/config

Will make terminator config (layout terms) for many windows in one group.

EDIT: At least, terminator is able to send broadcast into every terminal in same group. This function is switchable - so you may enable it write 'su -' then disable and write owen password to onces terminals and enable it again.

added formatting
Source Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 267

My little to mill:

#!/bin/sh

[ $# -lt 1 ] && { echo "Use: $0 where file includes list of server" exit 9 }

cp ~/.config/terminator/config ~/.config/terminator/config.date +%Y%m%d-%H%M

cat ~/.config/terminator/config.date +%Y%m%d-%H%M|grep -v "^.plugins" >~/.config/terminator/config

inc=5 echo " [[terms]]" >>~/.config/terminator/config for i in cat $1 ; do echo " [[[window${inc}]]]" echo " type = Window" echo " [[[terminal${inc}]]]" echo " profile = default" echo " order = 0" echo " type = Terminal" echo " parent = window${inc}" echo " command = ssh $i" inc=$((inc+1)) done >>~/.config/terminator/config

echo "[plugins]" >>~/.config/terminator/config

#!/bin/sh

[ $# -lt 1 ] && {
        echo "Use: $0 <file>
        where file includes list of server"
        exit 9
}

cp ~/.config/terminator/config ~/.config/terminator/config.`date +%Y%m%d-%H%M`

cat ~/.config/terminator/config.`date +%Y%m%d-%H%M`|grep -v "^.plugins" >~/.config/terminator/config

inc=5
echo "  [[terms]]" >>~/.config/terminator/config
for i in `cat $1` ; do
        echo "   [[[window${inc}]]]"
        echo "       type = Window"
        echo "   [[[terminal${inc}]]]"
        echo "     profile = default"
        echo "     order = 0" 
        echo "     type = Terminal"
        echo "     parent = window${inc}"
        echo "     command = ssh $i"
        inc=$((inc+1))
done >>~/.config/terminator/config

echo "[plugins]" >>~/.config/terminator/config

Will make terminator config (layout terms) for many windows in one group...

My little to mill:

#!/bin/sh

[ $# -lt 1 ] && { echo "Use: $0 where file includes list of server" exit 9 }

cp ~/.config/terminator/config ~/.config/terminator/config.date +%Y%m%d-%H%M

cat ~/.config/terminator/config.date +%Y%m%d-%H%M|grep -v "^.plugins" >~/.config/terminator/config

inc=5 echo " [[terms]]" >>~/.config/terminator/config for i in cat $1 ; do echo " [[[window${inc}]]]" echo " type = Window" echo " [[[terminal${inc}]]]" echo " profile = default" echo " order = 0" echo " type = Terminal" echo " parent = window${inc}" echo " command = ssh $i" inc=$((inc+1)) done >>~/.config/terminator/config

echo "[plugins]" >>~/.config/terminator/config

Will make terminator config (layout terms) for many windows in one group...

My little to mill:

#!/bin/sh

[ $# -lt 1 ] && {
        echo "Use: $0 <file>
        where file includes list of server"
        exit 9
}

cp ~/.config/terminator/config ~/.config/terminator/config.`date +%Y%m%d-%H%M`

cat ~/.config/terminator/config.`date +%Y%m%d-%H%M`|grep -v "^.plugins" >~/.config/terminator/config

inc=5
echo "  [[terms]]" >>~/.config/terminator/config
for i in `cat $1` ; do
        echo "   [[[window${inc}]]]"
        echo "       type = Window"
        echo "   [[[terminal${inc}]]]"
        echo "     profile = default"
        echo "     order = 0" 
        echo "     type = Terminal"
        echo "     parent = window${inc}"
        echo "     command = ssh $i"
        inc=$((inc+1))
done >>~/.config/terminator/config

echo "[plugins]" >>~/.config/terminator/config

Will make terminator config (layout terms) for many windows in one group.

Source Link

My little to mill:

#!/bin/sh

[ $# -lt 1 ] && { echo "Use: $0 where file includes list of server" exit 9 }

cp ~/.config/terminator/config ~/.config/terminator/config.date +%Y%m%d-%H%M

cat ~/.config/terminator/config.date +%Y%m%d-%H%M|grep -v "^.plugins" >~/.config/terminator/config

inc=5 echo " [[terms]]" >>~/.config/terminator/config for i in cat $1 ; do echo " [[[window${inc}]]]" echo " type = Window" echo " [[[terminal${inc}]]]" echo " profile = default" echo " order = 0" echo " type = Terminal" echo " parent = window${inc}" echo " command = ssh $i" inc=$((inc+1)) done >>~/.config/terminator/config

echo "[plugins]" >>~/.config/terminator/config

Will make terminator config (layout terms) for many windows in one group...