Annotation of /mcore-src/trunk/mcore-tools/src/modules/citrix/query-citrix-browser.in
Parent Directory | Revision Log
Revision 2272 -
(hide annotations)
(download)
Tue Jan 14 13:20:35 2014 UTC (10 years, 4 months ago) by niro
File size: 756 byte(s)
Tue Jan 14 13:20:35 2014 UTC (10 years, 4 months ago) by niro
File size: 756 byte(s)
-split citrix.client.class.in to single programs named citrix-serverlist, citrix-session and query-citrix-browser to make things more modular and simpler
1 | niro | 2272 | #!/bin/bash |
2 | |||
3 | source @@SYSCONFDIR@@/mcore/citrix.conf | ||
4 | |||
5 | die() { echo "ERROR: $@"; exit 1; } | ||
6 | |||
7 | # very basic getops | ||
8 | for argv in $* | ||
9 | do | ||
10 | case $1 in | ||
11 | --server) method="-S"; pnabrowse_exclude="${PNABROWSE_SERVER_EXCLUDE}" ;; | ||
12 | --session)method="-A"; pnabrowse_exclude="${PNABROWSE_SESSION_EXCLUDE}" ;; | ||
13 | esac | ||
14 | shift | ||
15 | done | ||
16 | |||
17 | [[ -n ${method} ]] || die "no method given" | ||
18 | |||
19 | [[ -n ${PNABROWSE_EXECUTABLE} ]] || eecho "\$PNABROWSE_EXECUTABLE not defined" | ||
20 | [[ -n ${PNABROWSE_CITRIX_BROWSER} ]] || eecho "\$PNABROWSE_CITRIX_BROWSER not defined" | ||
21 | if [ -x ${MROOT}/${PNABROWSE_EXECUTABLE} ] | ||
22 | then | ||
23 | if [[ -n ${pnabrowse_exclude} ]] | ||
24 | then | ||
25 | exclude="| grep -v '${pnabrowse_exclude}'" | ||
26 | fi | ||
27 | eval ${MROOT}/${PNABROWSE_EXECUTABLE} "${method}" "${PNABROWSE_CITRIX_BROWSER}" ${exclude} | ||
28 | fi |