When i try to run the following expect script, it just finishes running instead waiting for user input. Could someone tell me what i am doing wrong?
#!/usr/bin/expect
puts -nonewline stdout "Enter device id:"
flush stdout
gets stdin id
puts -nonewline stdout "Enter device name:"
flush stdout
gets stdin name
gets stdin
by testing. I was very surprised by that change. – Blader