Hi
how can I use expect module to responds to “Press to continue.” during installation of software on linux?
The questins during installations are:
Press to continue. → then show licence you have to go to the last line with enter
If yes, enter ‘y’ to accept the license agreement. If no, enter ‘n’ to cancel the installation: y
VVAgent is still running. Do you wish to stop it? ([Y]/n) y
Installation directory? [/opt/BUAgent]
Select language: [en-US]
This will invalidate your previous registration. (y/[N]) N
Select option (A|B) (default A) A
- name: CV upgrade
expect:
command: “/root/evault/Agent-Linux-x64-8.63.7483/install.sh”
responses:
Question: - ‘’
- y
- y
- /opt/BUAgent
- en-US
- N
- A
in verbose mode I’m getting this:
“start”: “2020-03-23 21:40:15.642239”,
“stdout”: “Verifying installer integrity… OK.\r\nVerifying prerequisites… OK.\r\nInstall started at 21:40:16 2020.03.23\r\n\u001b[3;J\u001b[H\u001b[2J--------------------------------------------------------------------------------\r\nBefore installing VVAgent, please read and agree to the terms\r\nand conditions of its user license.\r\n--------------------------------------------------------------------------------\r\nPress to continue.”,
“stdout_lines”: [
“Verifying installer integrity… OK.”,
“Verifying prerequisites… OK.”,
“Install started at 21:40:16 2020.03.23”,
“\u001b[3;J\u001b[H\u001b[2J--------------------------------------------------------------------------------”,
“Before installing VVAgent, please read and agree to the terms”,
“and conditions of its user license.”,
“--------------------------------------------------------------------------------”,
“Press to continue.”
thanks