expect
Posted to
tcl
by niekniek at Wed Feb 27 23:18:47 GMT 2019
view raw
#!/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
Recent Posts
tcl by egavilan
15 hours ago
tcl by bch
6 days ago
tcl by Bradipo
6 days ago
tcl by aspect
6 days ago
tcl by Bradipo
6 days ago
tcl by Bradipo
6 days ago
tcl by Bradipo
6 days ago
lilypond by Bradipo
8 days ago
tcl by cgm
18 days ago
tcl by dandyn
27 days ago
Submit
New paste
Documentation
From Jabber