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} ]] |
275 |
{ |
{ |
276 |
local action="$1" |
local action="$1" |
277 |
local server="$2" |
local server="$2" |
278 |
local serverlist+ *) help_citrix_session && return 1 ;; |
local serverlist |
279 |
local servercount |
local servercount |
280 |
local i |
local i |
281 |
local exclude |
local 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" |