如何在bash shell脚本中使用expect

#! /bin/bash
sh-cmd1
....
sh-cmdn
##################
expect <<\EOF
expect-cmd1
.......
expect-cmdn
EOF
##################
sh-cmdo
.......
sh-cmdp
##################
expect <<\EOF
expect-cmdr
.......
expect-cmds
EOF
##################

................

你可能感兴趣的:(expect,如何)