summaryrefslogtreecommitdiffstats
path: root/admin/Sources
diff options
context:
space:
mode:
authoradv <adv@uma.es>2011-02-25 17:18:13 +0000
committeradv <adv@uma.es>2011-02-25 17:18:13 +0000
commitaa91bf5cec941d0c50a61c3f062294e20add55d0 (patch)
treeeb3c909a03db64d3811cfe821cf563fa8c256158 /admin/Sources
parent70848f4b6596e143fdb57b129ad99a17d459df19 (diff)
branch version 1.0 log REPOMAN: ogAdmRepoAux >> ogAdmRepo.log sendFileMcast >> ogAdmRepoMulticast.log
git-svn-id: https://opengnsys.es/svn/branches/version1.0@1505 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/Sources')
-rwxr-xr-xadmin/Sources/Services/ogAdmRepoAux25
1 files changed, 12 insertions, 13 deletions
diff --git a/admin/Sources/Services/ogAdmRepoAux b/admin/Sources/Services/ogAdmRepoAux
index a0c26baa..4ab3b634 100755
--- a/admin/Sources/Services/ogAdmRepoAux
+++ b/admin/Sources/Services/ogAdmRepoAux
@@ -1,26 +1,25 @@
#!/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" ")
-echo $PARM
-echo $PARM1
-echo $PARM2
-echo $PARM3
-echo $PARM4
case $PARM1 in
START_MULTICAST)
- #1 START_MULTICAST
- #2 fichero a enviar
- FILE=/opt/opengnsys/images$PARM2
- MCASTOPT=$PARM3
- #3 opciones protocolo multicast
- echo "/opt/opengnsys/bin/sendFileMcast $FILE $MCASTOPT"
- /opt/opengnsys/bin/sendFileMcast $FILE $MCASTOPT
+ #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
;;
-esac \ No newline at end of file
+esac \ No newline at end of file