14 lines
299 B
Bash
Executable File
14 lines
299 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if (( $# != 2 )); then
|
|
echo "usage: $0 <camera> <filename>"
|
|
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
|