aboutsummaryrefslogtreecommitdiffstats
path: root/sampleconfig/lnd/lncli-create.exp
blob: 71c4f4e36487469943f75a9917aa7a01bba0c3e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/expect -f
set force_conservative 0  
if {$force_conservative} {
        set send_slow {1 .1}
        proc send {ignore arg} {
                sleep .1
                exp_send -s -- $arg
        }
}
set timeout -1
spawn lncli create
match_max 100000
expect -exact "Input wallet password: "
send -- "password\r"

expect -exact "Confirm password: "
send -- "password\r"

expect "*Do you have an existing cipher*"
send -- "n\r"

expect "*a"
send -- "\r"

expect eof