摘要: 1、安装expect yum install -y expect 2、编写脚本mysql.exp vi ./mysql.exp #!/usr/bin/expect set port [lindex $argv 0] #设置传参变量 spawn mysql -h 127.0.0.1 -P $port 阅读全文
posted @ 2022-12-30 17:20 弗拉宾教头 阅读(125) 评论(0) 推荐(0)