19 lines
411 B
Plaintext
Executable File
19 lines
411 B
Plaintext
Executable File
#!/usr/bin/expect -f
|
|
|
|
set force_conservative 0 ;# set to 1 to force conservative mode even if
|
|
;# script wasn't run conservatively originally
|
|
if {$force_conservative} {
|
|
set send_slow {1 .1}
|
|
proc send {ignore arg} {
|
|
sleep .1
|
|
exp_send -s -- $arg
|
|
}
|
|
}
|
|
|
|
set timeout -1
|
|
spawn /usr/safenet/lunaclient/bin/lunacm -c hagroup listgroups
|
|
match_max 100000
|
|
expect " Enter the password: "
|
|
send -- "\r"
|
|
expect eof
|