YII2自动初始化脚本

#!/usr/bin/expect
spawn ./init
expect "Which environment do you want the application to be initialized in?"
send "0\n"
expect "environment"
send "y\n"
expect "overwrite"
send "a\n"
expect "completed"
interact
posted @ 2018-01-30 19:57  lisq  阅读(156)  评论(0编辑  收藏  举报