#!/bin/bash if (( $# != 2 )); then echo "usage: $0 " exit -1 fi CAMERA_NAME=$1 FILENAME=$2 STREAM=$(curl -s http://sf-daqsync-01:8889/api/v1/pipeline/instance/${CAMERA_NAME}_sp1 | sed -e 's/.*"stream": "\([^"]*\)".*/\1/') echo $STREAM bs h5 -s $STREAM -m sub $FILENAME