How to read the output of a command executed from a script.
For ex.
sample_scritp.sh
-------------
useradd testuser1
password testuser1
....
.....
--------------
This prompts for "password", and "confirm password", for which i need to give the values from script.
Okey.
Can Shell script directly call Expect code?i.e can we write Expect code as part of the Shell script or we need write it in a seperate file and execute it.
Pls suggest some links for expect.