Understanding Unix "Expect"
Posted
by
zchtodd
on Super User
See other posts from Super User
or by zchtodd
Published on 2010-12-31T22:07:18Z
Indexed on
2010/12/31
22:56 UTC
Read the original article
Hit count: 317
unix
|automation
I don't think I properly understand the "expect" utility.
While searching for a way to automate a build process that involves jar signing, I came across expect, and thought I could use it to supply a password to jarsigner (whether having a password in a shell script is a good idea I understand the risks of).
expect "Enter Passphrase for keystore:"
Instead of catching this, the jarsigner sat waiting at that line.
Am I completely misunderstanding the point of "expect" and if I am, what can I use to achieve this effect?
© Super User or respective owner