How do I expect a bash script?

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

Tìm kiếm

Back
Top