Removed fuel from Genesis master since fuel has moved to repo fuel.
[genesis.git] / compass / deploy / remote_excute.exp
1 #!/usr/bin/expect
2
3 set command [lindex $argv 0]
4 set passwd [lindex $argv 1]
5
6 eval spawn "$command"
7 set timeout 60
8
9 expect {
10     -re ".*es.*o.*"
11     {
12         exp_send "yes\r"
13         exp_continue
14     }
15
16     -re ".*sword:" {
17         exp_send "$passwd\r"
18
19     }
20
21 }
22
23 interact