#!/bin/bash echo "Tidy up" killall master64 killall link64 killall merge64.AD echo "Starting Merge Server" if [ "$MIDASBASE" = "" ]; then export MIDASBASE=/MIDAS fi export PATH=${MIDASBASE}/Linux/bin64:${PATH} if [ "$LD_LIBRARY_PATH" = "" ]; then export LD_LIBRARY_PATH=${MIDASBASE}/Linux/lib64 else export LD_LIBRARY_PATH=${MIDASBASE}/Linux/lib64:${LD_LIBRARY_PATH} fi # # #UM=`umask` umask 0 # # load main data acquisition program # define netints and access registers # supply (non default) options # # netstring TS_Server "localhost" netstring TS2_Server "" #netint DACQ_Swop 1 netint DACQ_TxInit 0 # netint Output_BufferSize 64 netint Format_Option 4 netint Xfer_Option 3 netint Xfer_Overlap 0 netint Xfer_Priority 0 netint Merge_OutputAll 1 # export MIDAS_MEMSAS_PORT=0 # Merge_OutputTrace : 1 - adc traces # Merge_OutputTrace : 2 - raw traces # Merge_OutputTrace : 3 - all traces netint Merge_OutputTrace 1 export MIDASGSBASE=${MIDASBASE}/Merger/AIDA cd ${MIDASBASE}/Merger ${MIDASBASE}/Merger/master64 & # #umask $UM # echo startup complete # # 1 June 2017 - increase sleep time from 1000000 (11.6 days) to 150000000 (4.75 years) sleep 150000000