From dbb99e3748f85be6c6c0fe8e06178083a8199a2f Mon Sep 17 00:00:00 2001 From: Sinisa Veseli <sveseli@aps.anl.gov> Date: Thu, 27 Jun 2019 17:06:07 +0000 Subject: [PATCH] add hpcat utilities --- bin/HPCAT/dm-hpcat-daq | 18 ++++++++++++++++++ bin/HPCAT/dm-hpcat-upload | 18 ++++++++++++++++++ sbin/HPCAT/dm_hpcat_system_test_daq.sh | 5 +++++ sbin/HPCAT/dm_hpcat_system_test_upload.sh | 5 +++++ 4 files changed, 46 insertions(+) create mode 100755 bin/HPCAT/dm-hpcat-daq create mode 100755 bin/HPCAT/dm-hpcat-upload create mode 100755 sbin/HPCAT/dm_hpcat_system_test_daq.sh create mode 100755 sbin/HPCAT/dm_hpcat_system_test_upload.sh diff --git a/bin/HPCAT/dm-hpcat-daq b/bin/HPCAT/dm-hpcat-daq new file mode 100755 index 00000000..daed1d22 --- /dev/null +++ b/bin/HPCAT/dm-hpcat-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/HPCAT/dm-hpcat-upload b/bin/HPCAT/dm-hpcat-upload new file mode 100755 index 00000000..9f753a81 --- /dev/null +++ b/bin/HPCAT/dm-hpcat-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/HPCAT/dm_hpcat_system_test_daq.sh b/sbin/HPCAT/dm_hpcat_system_test_daq.sh new file mode 100755 index 00000000..83039714 --- /dev/null +++ b/sbin/HPCAT/dm_hpcat_system_test_daq.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +cd `dirname $0`/.. && DM_SBIN_DIR=`pwd` +$DM_SBIN_DIR/dm_system_test_daq.sh /home/dm/test + diff --git a/sbin/HPCAT/dm_hpcat_system_test_upload.sh b/sbin/HPCAT/dm_hpcat_system_test_upload.sh new file mode 100755 index 00000000..1b3b1b85 --- /dev/null +++ b/sbin/HPCAT/dm_hpcat_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 /home/dm/test + -- GitLab