expectはシェルスクリプトの中で対話モード感覚でコマンドを打てる。 sshで他のサーバにアクセスしたりしても、対話ベースでコマンドをたたいてくれる。 ソースファイルで必要なものは以下3つ expect(http://expect.nist.gov/) tcl,tk(http://sourceforge.net/project/showfiles.php?group_id=10894&package_id=10452)それぞれ最新版をとってくる。 インストール方法は以下の通り、 % cd /usr/local/src % tar zxvf tcl8.4.18-src.tar.gz % cd tcl8.4.18/unix % ./configure % make % su # make install # ln -s /usr/local/bin/tclsh8.4 /usr/local/b