磨磨的技术笔记
  • 首页
  • 归档
  • 分类
  • 标签
  • 关于
2015年4月2日 中午
35 字 1 分钟

shell脚本的自动交互

使用expect来自动应答shell的交互

1
2
3
4
5
6
7
#!/usr/bin/expect
spawn openssl req -new -key server.key -out server1.csr
expect "Country Name"
send "\n"
expect "State or Province Name"
send "\n"
interact

暂未分类
#暂未分类
shell脚本的自动交互
https://zphj1987.com/2015/04/02/shell脚本的自动交互/
作者
zphj1987
发布于
2015年4月2日
许可协议
windows下命令行设置静态IP 上一篇
history命令的优化 下一篇

目录

搜索

Hexo Fluid