From e04abc2b006f603b8c157cdd2ce92dc166368cda Mon Sep 17 00:00:00 2001 From: Sinisa Veseli <sveseli@aps.anl.gov> Date: Fri, 1 Dec 2017 15:36:36 +0000 Subject: [PATCH] added 17BM utilities --- bin/17BM/dm-17bm-daq | 18 ++++++++++++++++++ bin/17BM/dm-17bm-upload | 18 ++++++++++++++++++ sbin/17BM/dm_17bm_system_test_upload.sh | 5 +++++ 3 files changed, 41 insertions(+) create mode 100755 bin/17BM/dm-17bm-daq create mode 100755 bin/17BM/dm-17bm-upload create mode 100755 sbin/17BM/dm_17bm_system_test_upload.sh diff --git a/bin/17BM/dm-17bm-daq b/bin/17BM/dm-17bm-daq new file mode 100755 index 00000000..daed1d22 --- /dev/null +++ b/bin/17BM/dm-17bm-daq @@ -0,0 +1,18 @@ +#!/bin/sh + +# Run command + +if [ -z $DM_ROOT_DIR ]; then + cd `dirname $0` && myDir=`pwd` + setupFile=$myDir/../../setup.sh + if [ ! -f $setupFile ]; then + echo "Cannot find setup file: $setupFile" + exit 1 + fi + source $setupFile > /dev/null +fi +source $DM_ROOT_DIR/bin/dm_command_setup.sh + +eval "$DM_ROOT_DIR/src/python/dm/aps_beamline_tools/cli/daqCli.py $DM_COMMAND_ARGS" + + diff --git a/bin/17BM/dm-17bm-upload b/bin/17BM/dm-17bm-upload new file mode 100755 index 00000000..9f753a81 --- /dev/null +++ b/bin/17BM/dm-17bm-upload @@ -0,0 +1,18 @@ +#!/bin/sh + +# Run command + +if [ -z $DM_ROOT_DIR ]; then + cd `dirname $0` && myDir=`pwd` + setupFile=$myDir/../../setup.sh + if [ ! -f $setupFile ]; then + echo "Cannot find setup file: $setupFile" + exit 1 + fi + source $setupFile > /dev/null +fi +source $DM_ROOT_DIR/bin/dm_command_setup.sh + +eval "$DM_ROOT_DIR/src/python/dm/aps_beamline_tools/cli/uploadCli.py $DM_COMMAND_ARGS" + + diff --git a/sbin/17BM/dm_17bm_system_test_upload.sh b/sbin/17BM/dm_17bm_system_test_upload.sh new file mode 100755 index 00000000..4fb1816a --- /dev/null +++ b/sbin/17BM/dm_17bm_system_test_upload.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +cd `dirname $0`/.. && DM_SBIN_DIR=`pwd` +$DM_SBIN_DIR/dm_system_test_upload.sh /data dtn-ext-01:/data + -- GitLab