scmuser created the topic: expect command in unix /linux?
Hello,
I am doing a project which asks me to enter password 4 times in a row. I need to enter the same password 4 times. My target is to enter password once and apply it 4 times.
My friend told me to use “expect” command. Can you please give me a sample code to do so.
sample command :- $ ssh
enter
Could somebody plz tell me where the command “expect” is used. and wud appreciate if you can write a simple standalone script that uses this command. thanks
rajeshkumar replied the topic: Re: expect command in unix /linux?
Latest posts by scmgalaxy K (see all)
- Use of runtime variables to save into another variable using register in Ansible - September 6, 2018
- Ansible & Ansible Tower Variable Precedence Hierarchy - September 6, 2018
- How to use template in Ansible? - September 6, 2018