Add 'examples/expect/loginkvm.exp'
This commit is contained in:
parent
fbabb522fb
commit
abf98cd257
9
examples/expect/loginkvm.exp
Normal file
9
examples/expect/loginkvm.exp
Normal file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/expect
|
||||
|
||||
spawn pass luks.gigabarch.vpn
|
||||
expect ":~#"
|
||||
set passoutput $expect_out(buffer)
|
||||
spawn ssh gigabarch -l plantroon
|
||||
expect "assword"
|
||||
send $passoutput\r
|
||||
interact
|
Loading…
Reference in New Issue
Block a user