bash スクリプトを使用して 3 つの ec2 インスタンスを同時に開きたいと考えています。そのためにターミネーターを使用しています。次のスクリプトは 3 つのインスタンスを開きますが、1 つが閉じられた後で、他のインスタンスが開きます。同時にではありません。つまり、key1 インスタンスで端末を閉じる必要があり、その後、他の端末が開きます。
terminator -x ssh -i key1 ec2-user@52.x.x.x;
terminator -x ssh -i key2 ec2-user@52.x.x.x;
terminator -x ssh -i key3 ec2-user@52.x.x.x;
それらすべてを 1 つのターミナル ビューの 3 つのサブ ウィンドウで開くようにします。また、スクリプトの実行中に、次のメッセージが表示されます。
** (terminator:21982): WARNING **: Binding '<Shift><Control><Alt>a' failed!
Unable to bind hide_window key, another instance/window has it.
<Window object at 0x7ff93c1776e0 (terminatorlib+window+Window at 0x2afa090)> is not in registered window list
/usr/share/terminator/terminatorlib/terminator.py:87: Warning: Attempt to add property GnomeProgram::sm-connect after class was initialised
self.gnome_program = gnome.init(APP_NAME, APP_VERSION)
/usr/share/terminator/terminatorlib/terminator.py:87: Warning: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised
self.gnome_program = gnome.init(APP_NAME, APP_VERSION)
/usr/share/terminator/terminatorlib/terminator.py:87: Warning: Attempt to add property GnomeProgram::display after class was initialised
self.gnome_program = gnome.init(APP_NAME, APP_VERSION)
/usr/share/terminator/terminatorlib/terminator.py:87: Warning: Attempt to add property GnomeProgram::default-icon after class was initialised
self.gnome_program = gnome.init(APP_NAME, APP_VERSION)
** (terminator:21995): WARNING **: Binding '<Shift><Control><Alt>a' failed!
Unable to bind hide_window key, another instance/window has it.
私はうまく機能するこのコードを持ってきました。ただし、これは xterm 用です。ターミネーターの同じコマンドを手伝ってくれる人はいますか?
(xterm -geometry 70x70-0-0 -e ssh -i key1 ec2-user@52.x.x.x;) &
(xterm -geometry 70x70+485-200 -e ssh -i key1 ec2-user@52.x.x.x;) &
(xterm -geometry 70x70+0-0 -e ssh -i key1 ec2-user@52.x.x.x;)