使用expect来自动应答shell的交互
#!/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
使用expect来自动应答shell的交互
#!/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
下一篇:history命令的优化
1、mongo提供*.js的方法供linux调用 2、把参数传到mongo命令中:
shell脚本-自动化分区挂载这个脚本是用于批量挂盘使用的,当服务器的磁盘有多块需要挂载,用它比较方便#!
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M