How do I expect a bash script?
Answer
How to Use Expect In Bash Script
Answer
How to Use Expect In Bash Script
- Step 1 : Create a new file. vi expectcmd.
- Step 2 : Copy and paste below given content in file. Change the value as per your information in variables – …
- Step 3: Make your file executable by owner of file , run the given below command. chmod 750 expectcmd.
- Step 4: Give commands as argument along with expectcmd script.