Code Review
/
genesis.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
9dd112b31933c2e5e38cd72f76ab1c0c5a8f2252
[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