运维网's Archiver
论坛
›
Shell/Powershell
› 用expect跳过密码验证的shell范例
cyrus
发表于 2018-8-29 09:36:01
用expect跳过密码验证的shell范例
#!/bin/bash
Local_Dir='/tmp/test_huadan'
Ip='192.168.0.221'
PassWord='Lhm0125'
Des_Dir='/tmp/test_huadan'
List=$(find $Local_Dir -cmin -60)
for i in $List
do
#echo $i
if [ -f $i ]
then
expect
页:
[1]
查看完整版本:
用expect跳过密码验证的shell范例