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