#!/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
原文地址:https://www.cnblogs.com/lisq/p/8387011.html
时间: 2024-10-12 15:33:24