diff --git a/sources/pumplaser.sources b/sources/pumplaser.sources new file mode 100644 index 0000000..4789867 --- /dev/null +++ b/sources/pumplaser.sources @@ -0,0 +1,7 @@ +{ +/* Laser IOC's - Responsible E. Divall */ + "sources": [ + {"stream": "tcp://SLAAR-CVME-LAS6861:9999"} + ,{"stream": "tcp://SLAAR-CVME-LAS6891:9999"} + ] +} diff --git a/stop_timing.sh b/stop_timing.sh new file mode 100755 index 0000000..61b3ff1 --- /dev/null +++ b/stop_timing.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +HOST="https://dispatcher-api.psi.ch/sf" +# HOST="http://localhost:8080" +HTTP_ADDRESS="/configuration/delete" +RESPONSE=response.json +# see http://stackoverflow.com/questions/18258804/how-to-catch-timeout-errors-in-a-curl-shell-script +COMMAND="curl -s -w %{http_code} -X POST" + +while read -r -d '' filename; do + COMMAND+=" -F files=@${filename}" +done < <(find . \( -name "timing.sources" -o -name "timing.policies" \) -print0) + +COMMAND+=" ${HOST}${HTTP_ADDRESS} -o ${RESPONSE}" +# echo "Execute command: "${COMMAND} +STATUS=$(${COMMAND}) + +cat ${RESPONSE} +rm -f ${RESPONSE} +#echo ${STATUS} diff --git a/upload_images.sh b/upload_images.sh new file mode 100755 index 0000000..e92b070 --- /dev/null +++ b/upload_images.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +HOST="https://dispatcher-api.psi.ch/sf" +# HOST="http://localhost:8080" +HTTP_ADDRESS="/configuration/upload" +RESPONSE=response.json +# see http://stackoverflow.com/questions/18258804/how-to-catch-timeout-errors-in-a-curl-shell-script +COMMAND="curl -s -w %{http_code} -X POST" + +while read -r -d '' filename; do + COMMAND+=" -F files=@${filename}" +done < <(find . \( -name "image.sources" -o -name "image.policies" \) -print0) + +COMMAND+=" ${HOST}${HTTP_ADDRESS} -o ${RESPONSE}" +# echo "Execute command: "${COMMAND} +STATUS=$(${COMMAND}) + +cat ${RESPONSE} +rm -f ${RESPONSE} +#echo ${STATUS}