I've set the timeout to a stupid high number. Is there a better way to tell the script not to time out?
#!/usr/bin/expect
spawn telnet 10.10.10.10
set timeout 200000000
expect "login"
send "user\r"
expect "Password:"
send "password\r"
send "./run/this.sh\r"
Set the
timeout
value to-1
An excerpt from the
expect
,man page