Skip to content

Commit cde9423

Browse files
authored
Merge pull request #316 from silkenelson/fix_xcs_startami
local plugins no longer used at XPP & XCS
2 parents 854db00 + 0e8cb61 commit cde9423

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

scripts/startami

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,25 +64,14 @@ if [[ -z $CONFIG ]]; then
6464
CONFIG=$HUTCH$CNFEXT
6565
fi
6666

67-
#
68-
# this is XPP specific. Don't think we should have local plugins anyways,
69-
# only release ones.
70-
#
71-
source /reg/g/pcds/setup/pathmunge.sh
72-
if [ "$HUTCH" == 'xpp' ]; then
73-
ldpathmunge /reg/neh/operator/xppopr/ami_plugins
74-
elif [ "$HUTCH" == 'xcs' ]; then
75-
ldpathmunge /reg/neh/operator/xcsopr/online/ami_plugins
76-
fi
77-
7867

7968
DAQHOST=$(wheredaq)
8069
ami_base_path=$(grep ami_base_path /reg/g/pcds/dist/pds/"$HUTCH"/scripts/"$CONFIG" | grep -v '#' | grep -v 'ami_base_path+' | awk 'BEGIN { FS = "=" }; { print $2}' | sed s/\'//g)
81-
ami_path=$ami_base_path$(grep ami_path /reg/g/pcds/dist/pds/"$HUTCH"/scripts/"$CONFIG" | grep -v 'ami_path+' | grep -v '#' | awk 'BEGIN { FS = "= " }; { print $2}' | sed s/ami_base_path+// | sed s/\'//g)
70+
ami_path=$ami_base_path$(grep ami_GUI_path /reg/g/pcds/dist/pds/"$HUTCH"/scripts/"$CONFIG" | grep -v 'ami_path+' | grep -v '#' | awk 'BEGIN { FS = "= " }; { print $2}' | sed s/ami_base_path+// | sed s/\'//g)
8271

8372
proxy_cds=$(/reg/g/pcds/dist/pds/"$HUTCH"/current/tools/procmgr/procmgr status /reg/g/pcds/dist/pds/"$HUTCH"/scripts/"$CONFIG" | grep ami_proxy | awk '{print $1}' | sed s/'-fez'/''/g)
8473

85-
amicmd=$(grep ami_client /reg/g/pcds/dist/pds/"$HUTCH"/scripts/"$CONFIG" | grep -v '#' | awk 'BEGIN { FS = ":" }; { print $4}' | sed s/ami_path//g | sed s/\'+proxy_cds/"$proxy_cds"/g | sed s:\'+expname:"$EXPNAME"/:g | sed s/+\'//g | sed s/\'\}\)//g)
74+
amicmd=$(grep ami_client /reg/g/pcds/dist/pds/"$HUTCH"/scripts/"$CONFIG" | grep -v '#' | awk 'BEGIN { FS = ":" }; { print $4}' | sed s/ami_GUI_path//g | sed s/\'+proxy_cds/"$proxy_cds"/g | sed s:\'+expname:"$EXPNAME"/:g | sed s/+\'//g | sed s/\'\}\)//g)
8675

8776
if [[ "$DAQHOST" == *"$HOSTNAME" ]]; then # Check host and daq host line share host name...
8877
#running on the DAQ host, this will restart the ami_client!
@@ -107,4 +96,5 @@ else
10796
fi
10897

10998
echo "$ami_path""$amicmd"
99+
110100
eval "$ami_path$amicmd &"

0 commit comments

Comments
 (0)