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 oldlaptop
7 hours ago
tcl by mookie
6 days ago
tcl by dandyn
13 days ago
tcl by Bradipo
13 days ago
tcl by Bradipo
13 days ago
tcl by oldlaptop
37 days ago
tcl by oldlaptop
37 days ago
tcl by mookie
42 days ago
tcl by mookie
43 days ago
tcl by georgtree
44 days ago
Submit
New paste
Documentation
From Jabber