#!/bin/bash/usr/bin/expect <<-EOFlog_file test1-11#spawn ssh
spawn ssh net@10。1.1.1expect "password:" send "123456 "expect "#"send "show interface Ethernet1/11 |grep CRC "
#send "ls "#expect eof#send "df "expect eofexitEOF