245 |
;; |
;; |
246 |
|
|
247 |
auto) |
auto) |
248 |
|
[[ -n ${PNABROWSE_EXECUTABLE} ]] || eecho "\$PNABROWSE_EXECUTABLE not defined" |
249 |
|
[[ -n ${PNABROWSE_CITRIX_BROWSER} ]] || eecho "\$PNABROWSE_CITRIX_BROWSER not defined" |
250 |
if [ -x ${MROOT}/${PNABROWSE_EXECUTABLE} ] |
if [ -x ${MROOT}/${PNABROWSE_EXECUTABLE} ] |
251 |
then |
then |
252 |
if [[ -n ${PNABROWSE_SERVER_EXCLUDE} ]] |
if [[ -n ${PNABROWSE_SERVER_EXCLUDE} ]] |
284 |
|
|
285 |
case "${action}" in |
case "${action}" in |
286 |
print) |
print) |
287 |
list_files_in_directory ${MROOT}/${MCORE_CONFIG_PATH}/citrix/serverlist ;; |
list_files_in_directory ${MROOT}/${MCORE_CONFIG_PATH}/citrix/serverlist ;; |
288 |
query) |
query) |
289 |
[[ -n ${PNABROWSE_EXECUTABLE} ]] || eecho "\$PNABROWSE_EXECUTABLE not defined" |
[[ -n ${PNABROWSE_EXECUTABLE} ]] || eecho "\$PNABROWSE_EXECUTABLE not defined" |
290 |
[[ -n ${PNABROWSE_CITRIX_BROWSER} ]] || eecho "\$PNABROWSE_CITRIX_BROWSER not defined" |
[[ -n ${PNABROWSE_CITRIX_BROWSER} ]] || eecho "\$PNABROWSE_CITRIX_BROWSER not defined" |
291 |
if [ -x ${MROOT}/${PNABROWSE_EXECUTABLE} ] |
if [ -x ${MROOT}/${PNABROWSE_EXECUTABLE} ] |
292 |
then |
then |
293 |
serverlist=( $(${MROOT}/${PNABROWSE_EXECUTABLE} -S ${PNABROWSE_CITRIX_BROWSER}) ) |
if [[ -n ${PNABROWSE_SERVER_EXCLUDE} ]] |
294 |
|
then |
295 |
|
exclude="| grep -v '${PNABROWSE_SERVER_EXCLUDE}'" |
296 |
|
fi |
297 |
|
serverlist=( $(${MROOT}/${PNABROWSE_EXECUTABLE} -S ${PNABROWSE_CITRIX_BROWSER} ${exclude}) ) |
298 |
servercount="${#serverlist[*]}" |
servercount="${#serverlist[*]}" |
299 |
for (( i=0; i<servercount; i++)) |
for (( i=0; i<servercount; i++)) |
300 |
do |
do |