From e8460d24b1f422ee143e401cda13049f586370bf Mon Sep 17 00:00:00 2001 From: adv Date: Thu, 14 Apr 2011 20:09:27 +0000 Subject: version1.0 #369 controlando errores de inicio de multicast git-svn-id: https://opengnsys.es/svn/branches/version1.0@1863 a21b9725-9963-47de-94b9-378ad31fedc9 --- repoman/bin/sendFileMcast | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'repoman') diff --git a/repoman/bin/sendFileMcast b/repoman/bin/sendFileMcast index 4a4afb60..b1c124f1 100755 --- a/repoman/bin/sendFileMcast +++ b/repoman/bin/sendFileMcast @@ -19,7 +19,7 @@ if [ "$*" == "help" ]; then fi # Error si no se reciben 2 parámetros. if [ $# -ne 2 ]; then - echo "$PROG Error: Formato: $PROG fichero|nombreImagen datosMulticast" >&2 + echo "$PROG Error: Formato: $PROG fichero|nombreImagen datosMulticast" exit 1 fi @@ -34,7 +34,7 @@ else FICHIMG="$FICH" fi if [ ! -f "$FICHIMG" ]; then - echo "$PROG Error: Fichero \"$FICH\" no accesible" >&2 + echo "$PROG Error: Fichero \"$FICH\" no accesible" exit 2 fi @@ -50,8 +50,8 @@ PARAMS=$(echo $2 | \ ') read -e PORTBASE METHOD ADDRESS BITRATE NCLIENTS MAXTIME <<< $PARAMS if [ -z "$MAXTIME" ]; then - echo "$PROG Error: Datos de sesión incorrectos: \"$2\"" >&2 - exit 1 + echo "$PROG Error: Datos de sesión incorrectos: \"$2\"" + exit 3 fi # Valores estandar no configurables. @@ -62,6 +62,6 @@ which mbuffer &> /dev/null && MBUFFER="--pipe 'mbuffer -m 20M'" ##### ADV v. 1.0 23/02/2011 #version 0.10 # udp-sender $MBUFFER --portbase $PORTBASE --$METHOD --mcast-data-address $ADDRESS --fec $CERROR --max-bitrate $BITRATE --ttl 1 --min-clients $NCLIENTS --max-wait $MAXTIME --file "$FICHIMG" #/opt/opengnsys/bin/udp-sender $MBUFFER --nokbd --retries-until-drop 65 --portbase $PORTBASE --$METHOD --mcast-data-address $ADDRESS --fec $CERROR --max-bitrate $BITRATE --ttl 1 --min-clients $NCLIENTS --max-wait $MAXTIME --file "$FICHIMG" --log /opt/opengnsys/log/ogAdmRepoMcast.log -/opt/opengnsys/bin/udp-sender $MBUFFER --nokbd --retries-until-drop 65 --portbase $PORTBASE --$METHOD --mcast-data-address $ADDRESS --fec $CERROR --max-bitrate $BITRATE --ttl 1 --min-clients $NCLIENTS --max-wait $MAXTIME --file "$FICHIMG" >> /opt/opengnsys/log/ogAdmRepoMcast.log +/opt/opengnsys/bin/udp-sender $MBUFFER --nokbd --retries-until-drop 65 --portbase $PORTBASE --$METHOD --mcast-data-address $ADDRESS --fec $CERROR --max-bitrate $BITRATE --ttl 1 --min-clients $NCLIENTS --max-wait $MAXTIME --file "$FICHIMG" ##### ADV v. 1.0 23/02/2011 -- cgit v1.2.3-18-g5258