89 |
|
|
90 |
while [[ ${run} = run ]] |
while [[ ${run} = run ]] |
91 |
do |
do |
92 |
|
# use an echo here not read -p '>' because sslsvd ignores the prompt pattern |
93 |
|
echo -n '> ' |
94 |
read line |
read line |
95 |
eval "GLOBAL_ARGV=( ${line} )" |
eval "GLOBAL_ARGV=( ${line} )" |
96 |
|
|
103 |
get) run_class ;; |
get) run_class ;; |
104 |
set) run_class ;; |
set) run_class ;; |
105 |
auth) validate_auth ${GLOBAL_ARGV[*]:1} ;; |
auth) validate_auth ${GLOBAL_ARGV[*]:1} ;; |
106 |
|
certauth) validate_auth_certificate ${GLOBAL_ARGV[*]:1} ;; |
107 |
provide) valid_session && print_provide ;; |
provide) valid_session && print_provide ;; |
108 |
require) valid_session && verify_requirements ;; |
require) valid_session && verify_requirements ;; |
109 |
reload) valid_session && mecho "reloading client classes ..." && load_classes client ;; |
reload) valid_session && mecho "reloading client classes ..." && load_classes client ;; |