git.samba.org
/
kai
/
ad-bench.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
utils: Fix get_nt_dom routine, add tests
[kai/ad-bench.git]
/
kinit.expect
1
#!/usr/bin/expect --
2
set timeout 10
3
spawn /usr/bin/kinit [lindex $argv 0]
4
expect
5
"password" {
6
set pw [lindex $argv 1]
7
send "$pw\n"
8
exp_continue
9
} "Failed" {
10
exit 1
11
} timeout {
12
puts "\ntimeout\n"
\r
13
exit 1
14
} eof {
15
}
16
}
17
18
exit [lindex [wait] 3]