Project

General

Profile

Bug #22980

daqinterface scripts should be able to tell if their environment hasn't been setup properly

Added by Ron Rechenmacher 4 months ago. Updated 4 months ago.

Status:
Reviewed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
07/23/2019
Due date:
% Done:

100%

Estimated time:
Experiment:
-
Co-Assignees:
Duration:

Description

I do and get:

/home/ron/work/artdaqPrj/demo2-brett/DAQInterface
ron@ronlap77 :^) . mock_ups_setup.sh 
--2019-07-23_15:08:20--
/home/ron/work/artdaqPrj/demo2-brett/DAQInterface
ron@ronlap77 :^) listdaq
listdaqcomps.sh       listdaqinterfaces.sh  
ron@ronlap77 :^) listdaq
listdaqcomps.sh       listdaqinterfaces.sh  
ron@ronlap77 :^) listdaqinterfaces.sh 
/home/ron/work/artdaqPrj/demo2-brett/artdaq-utilities-daqinterface/bin/daqinterface_functions.sh: line 5: +  *  : syntax error: operand expected (error token is "*  ")
DAQInterface instance was launched at 12:51 by ron in partition 0 listening on port 10000
--2019-07-23_15:08:34--

History

#1 Updated by John Freeman 4 months ago

  • % Done changed from 0 to 100
  • Status changed from New to Resolved

With commit 8cdcffb7bd7b6adfce61d6129fda98ff964f0235 at the head of feature/issue22980_exit_without_environment, the DAQInterface scripts will exit out with an error message if they see that the user hasn't set up the DAQInterface environment.

#2 Updated by Ron Rechenmacher 4 months ago

  • Status changed from Resolved to Reviewed

verified:

/home/ron/work/artdaqPrj/demo2/DAQInterface
ron@ronlap77 :^) . ./mock_ups_setup.sh 
--2019-07-25_16:00:45--
/home/ron/work/artdaqPrj/demo2/DAQInterface
ron@ronlap77 :^) listdaqinterfaces.sh 
/home/ron/work/artdaqPrj/demo2/artdaq-utilities-daqinterface/bin/daqinterface_functions.sh: line 5: +  *  : syntax error: operand expected (error token is "*  ")
No instances of DAQInterface are up
--2019-07-25_16:00:51--

changed to:

/home/ron/work/artdaqPrj/demo2/artdaq-utilities-daqinterface
ron@ronlap77 :^) git checkout feature/issue22980_exit_without_environment
Branch feature/issue22980_exit_without_environment set up to track remote branch feature/issue22980_exit_without_environment from origin.
Switched to a new branch 'feature/issue22980_exit_without_environment'
--2019-07-25_16:01:36--
/home/ron/work/artdaqPrj/demo2/artdaq-utilities-daqinterface
ron@ronlap77 :^) listdaqinterfaces.sh 

It appears you haven't set up the DAQInterface environment - e.g.,
various environment variables which DAQInterface instances and the
scripts which control them need in order to know how to behave are
unset. Please read the DAQInterface manual at
https://cdcvs.fnal.gov/redmine/projects/artdaq-utilities/wiki/Artdaq-daqinterface
to learn how to set up the environment. Exiting...

--2019-07-25_16:01:53--

and then, following the instructions (for develop branch):

/home/ron/work/artdaqPrj/demo2/DAQInterface
ron@ronlap77 :^) export DAQINTERFACE_USER_SOURCEFILE=$PWD/user_sourcefile_example
--2019-07-25_16:03:56--
/home/ron/work/artdaqPrj/demo2/DAQInterface
ron@ronlap77 :^) source $ARTDAQ_DAQINTERFACE_DIR/source_me
Using ups-installed DAQInterface, version "1.0" 
* The command was successful
* To launch, just type "DAQInterface &" (excluding quotes, ampersand optional)
* Output will be logged in /tmp/daqinterface_ron/DAQInterface_partition<N>.log, where <N> 
  is the partition the DAQInterface instance is on
* Help is available at https://cdcvs.fnal.gov/redmine/projects/artdaq-utilities/wiki/Artdaq-daqinterface

--2019-07-25_16:03:56--
/home/ron/work/artdaqPrj/demo2/DAQInterface
ron@ronlap77 :^) listdaqinterfaces.sh 
No instances of DAQInterface are up
--2019-07-25_16:04:00--


Also available in: Atom PDF