automate input
Hello, thanks for your time, but still no solution
when i try
program << eof >> $result 2>&1
answer1
eof
the program just sits waiting. When i type the answer1-string myself, everything goes well.
I installed expect (and tcl --> both latest versions)
and tried the following script :
#!/usr/local/bin/expect
send_user "start expect\r"
spawn PROGRAM
expect "pass phrase:"
send "answer1\r"
send_user "stop expect\r"
This doesn't work either --> the program gets started, but finishes after displaying the question to enter the pass phrase.
The start en stop expect doesn't appear on screen also.
Has the fact that when in normal mode (outside a script) the pass phrase is entered it doesn't appear on the screen (password-like) ?
Thanks in advance
Erwin
|