blob: ddbe07ef9cc68379753ebe81801f2697184af050 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/bash
PARM=`cat`
BASEDIR=/opt/opengnsys
REPONAME=ogAdmRepo
REPOLOG=$BASEDIR/log/$REPONAME.log
PARM1=$(echo $PARM | cut -f1 -d" ")
PARM2=$(echo $PARM | cut -f2 -d" ")
PARM3=$(echo $PARM | cut -f3 -d" ")
PARM4=$(echo $PARM | cut -f4 -d" ")
case $PARM1 in
START_MULTICAST)
#1 START_MULTICAST
#2 fichero a enviar
#3 opciones de multicast
FILE=/opt/opengnsys/images$PARM2
MCASTOPT=$PARM3
echo "/opt/opengnsys/bin/sendFileMcast $FILE $MCASTOPT" >> $REPOLOG
/opt/opengnsys/bin/sendFileMcast $FILE $MCASTOPT >> $REPOLOG
echo $? >> $REPOLOG
;;
default)
echo "Solicitud con parametros: - $PARM - no realizada: No registrada o con errores" >> $REPOLOG
;;
esac
|