![]() |
|
|||
File indexing completed on 2025-08-02 08:21:08
0001 #! /bin/bash 0002 0003 # in brief (this is heavily geared to the sPHENIX DB environment): 0004 # - make a named fifo, such as "mkfifo sqlinput" 0005 # - tell RCDAQ to write to that fifo - "rcdaq_client daq_open_sqlstream sqlinput" 0006 # then this script will grab the input and fill the DB 0007 0008 # if another fifo name is wanted, give it as parameter 0009 0010 FIFO="$1" 0011 [ -z "$FIFO" ] && FIFO=sqlinput 0012 0013 # define the actual database tables in use here 0014 export FILETABLE=filelist 0015 export RUNTABLE=run 0016 0017 # define the fifo 0018 0019 while true ; do 0020 while read -r line ; do 0021 xline=$(echo $line | envsubst) 0022 echo $xline 0023 psql -U phnxrc play -c "$xline" 0024 done < "$FIFO" 0025 done
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |