Andrew Jeffery | 8dfebd8 | 2017-03-30 14:56:54 +1030 | [diff] [blame] | 1 | #!/usr/bin/expect -df -- |
2 | |||||
3 | set timeout 300 | ||||
4 | |||||
Andrew Jeffery | 724782e | 2017-03-30 19:41:09 +1030 | [diff] [blame] | 5 | spawn ssh -p2200 {*}[lrange $argv 0 end] |
Andrew Jeffery | 8dfebd8 | 2017-03-30 14:56:54 +1030 | [diff] [blame] | 6 | |
7 | expect { | ||||
8 | -ex "Petitboot" { exit } | ||||
9 | timeout { exit 1 } | ||||
10 | eof { exit 2 } | ||||
11 | .* { exp_continue } | ||||
12 | } |