#!/bin/bashecho begintelnet 192.168.129.1 <<EOFuserpasswordecho okexitEOFecho end
sh xx.sh >> xx.txt试试看