expect简单使用案例
摘要:举例:自动从另一个机器B中获取文件 shell脚本中调用expect脚本(传递所需要的机器B中的文件路径) filename=$1 ./t1.exp "/data/$filename" 给t1.exp赋权 chmod 755 t1.exp expect 脚本 #!/usr/bin/expect se
阅读全文
posted @ 2021-01-19 16:23
posted @ 2021-01-19 16:23
posted @ 2020-10-28 14:23
posted @ 2020-10-26 14:51