forked from TrueCloudLab/frostfs-dev-env
[#18] bin: Remove passwd.exp
It was here from older times Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
6d6aaefaec
commit
045b55250a
1 changed files with 0 additions and 23 deletions
|
@ -1,23 +0,0 @@
|
||||||
#!/usr/bin/expect
|
|
||||||
|
|
||||||
set passwd [lindex $argv 0]
|
|
||||||
set args [lrange $argv 1 end]
|
|
||||||
|
|
||||||
spawn -noecho {*}$args
|
|
||||||
expect -re {^.*assword.*$}
|
|
||||||
|
|
||||||
if { $passwd == "-"} {
|
|
||||||
send -- "\r"
|
|
||||||
} else {
|
|
||||||
send -- "$passwd\r"
|
|
||||||
}
|
|
||||||
|
|
||||||
expect {
|
|
||||||
"Relay transaction" {
|
|
||||||
send "y\r"
|
|
||||||
exp_continue
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
lassign [wait] pid spawnid os_error_flag value
|
|
||||||
exit $value
|
|
Loading…
Reference in a new issue