这是段落字体
这是标题一默认字体
这时标题二默认字体
这是标题三默认字体
这是标题四
#!/usr/bin/expect -f set ip_addr "192.168.1." #set user_name "pi" #set user_path "/home/pi/" set password "user" set timeout 5 for { set ip_last 2 } { $ip_last < 96 } { incr ip_last } { spawn scp /home/pi/.bashrc "$user_name@$ip_addr$ip_last:/home/pi/.bashrc" expect { "(yes/no)?" { send "yes\n" expect "*assword:" { send "$password\n"} } "*assword:" { send "$password\n" } "No route to host" { } } expect "100%" } expect eof #interact #注意:expect脚本必须以interact或expect eof结束,执行自动化任务通常expect eof就够了。