#!/bin/bash
set -o pipefail         
if multicat -d 8100000000 -uU @233.21.0.72:43000 /data/motv/stream_recordings//2022/01/26/gnqcbufilk20220126122502233_21_0_72_43000_5min.ts; then
    cd /home/domains/motvmw/app/ApiModule/Model/../../../ && php app/bin/console stream-recording process 3 1
    exit 0;
fi;
cd /home/domains/motvmw/app/ApiModule/Model/../../../ && php app/bin/console stream-recording process 3 3
exit 1