暂未分类暂未分类shell脚本的自动交互zphj19872015-04-022024-01-05使用expect来自动应答shell的交互 1234567#!/usr/bin/expectspawn openssl req -new -key server.key -out server1.csrexpect "Country Name"send "\n"expect "State or Province Name"send "\n"interact