autoexpectでexpectのスクリプトを自動生成

expectなんてまずやらないんだけど、見つけたのでメモ。ubuntuだとexpect-devパッケージに/usr/bin/expect_autoexpectでインストール。

$ expect_autoexpect ftp ftp.exmaple.com

とかで普通にftpすると、script.expに記録される。
expectのファイルを指定する場合は-fで。