Hi.
Very new to expect! Only know the very basic commands...
I can use spawn to start a process, expect to anticipate the program prompt and send to send input to the program...
so schematically I have:
Code:
#!/usr/bin/expect
spawn program
expect "prompt"
send "response"
expect "next prompt"
send etc etc
...
...
expect "final prompt"
send "response to get final answer!"
What now to write this result to a temp.file??
Is there someform of > that I can use?
Thanks - all tutorials online seem to be based around ftping