How do I expect a bash script?

Ánh Dương

New member
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. Change the value as per your information in variables – …
  3. Step 3: Make your file executable by owner of file , run the given below command. chmod 750 expectcmd.
  4. Step 4: Give commands as argument along with expectcmd script.
 

Tìm kiếm

Back
Top