概要 LinuxやMacでコマンドの自動実行を行いう為のスクリプト。 コマンドによっては対話処理が必要な場合がある。 (例: SSHのPW入力, yum/apt等のinstallコマンド) 対話入力を含めて自動実行をするスクリプト。 対話処理には[expect]を使用する。 install expect redhat yum install expect debian apt-get install expect mac brew install expect Format pattern1 #!/bin/bash expect -c " set [WORD] [VALUE] #変数を宣言して…