Posted to tcl by niekniek at Wed Feb 27 23:18:47 GMT 2019view pretty
#!/usr/bin/expect -f log_file -a ~/results.log spawn ssh user\@host expect "E*" { send "blabla\r" } expect "*#" { send "sh int status\n" } sleep 10 send "sh int status\n" exit
#!/usr/bin/expect -f log_file -a ~/results.log spawn ssh user\@host expect "E*" { send "blabla\r" } expect "*#" { send "sh int status\n" } sleep 10 send "sh int status\n" exit