如何在bash shell脚本中使用expect

  • Post author:
  • Post category:其他


#! /bin/bash

sh-cmd1

….

sh-cmdn

##################

expect <<\EOF

expect-cmd1

…….

expect-cmdn

EOF

##################

sh-cmdo

…….

sh-cmdp

##################

expect <<\EOF

expect-cmdr

…….

expect-cmds

EOF

##################

…………….

转载于:https://blog.51cto.com/lielie/1533636


关闭菜单