Can give the input to prompt using shell script

Hi,

I want to send input to promt from shell script, this thing is possible.

I give the one command
`/usr/share/ssl/misc/CA -newreq`
it needs some user input like password etc., but i need this input also from shell script but it does not works.

`/usr/share/ssl/misc/CA -newreq` <<EOF
certpassword
certpassword
EOF

Any othe thing is possible.
Thanks in advance

Vaibhav

you can use expect to do what you want

Hi,

how to install expect tool or it already installed by default?

After installing the tool,
expect commands give from shell script file or it needs other type of script file.

Vaibhav