diff options
author | irina <irinagomez@us.es> | 2014-02-17 08:32:59 +0000 |
---|---|---|
committer | irina <irinagomez@us.es> | 2014-02-17 08:32:59 +0000 |
commit | 4fcbcc8308f82aed30288e0d25b83ebae13c85ea (patch) | |
tree | 1ad0bdbf8ba606ed7c72c17335835baedc64807f /admin/Interface | |
parent | 993c3283b3b8c0df4fce82b210f62ad361edf06e (diff) |
#636 #537 Log en tiempo real. En los script de restauracion los mensajes se envian a session.log y las salidas de los comandos a commad.log. utf-8 en la pagina que muestra los log
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4149 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/Interface')
-rwxr-xr-x | admin/Interface/EjecutarScript | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/admin/Interface/EjecutarScript b/admin/Interface/EjecutarScript index adac9af7..9793290c 100755 --- a/admin/Interface/EjecutarScript +++ b/admin/Interface/EjecutarScript @@ -8,10 +8,9 @@ TIME1=$SECONDS # Clear temporary file used as log track by httpdlog # Limpia los ficheros temporales usados como log de seguimiento para httpdlog -echo " " > $OGLOGSESSION; echo " " > $OGLOGCOMMAND; echo " " > ${OGLOGCOMMAND}.tmp +echo -n "" > $OGLOGSESSION; echo -n "" > $OGLOGCOMMAND # Registro de inicio de ejecuciĆ³n -#echo "[START Interface ] Run this command: $0 $*" | tee -a $OGLOGSESSION $OGLOGFILE echo "$MSG_INTERFACE_START $0 $*" | tee -a $OGLOGSESSION $OGLOGFILE echo -e "\n Instrucciones a ejecutar: *****************************" >> $OGLOGFILE @@ -20,7 +19,9 @@ cat $1 >> $OGLOGFILE echo -e "\n Salida de las instrucciones: *****************************" >> $OGLOGFILE chmod +x $1 -$1 &>> $OGLOGCOMMAND +# Si mandamos la salida a OGLOGCOMMAND reescribimos lo que manda el comando. +#$1 &>> $OGLOGCOMMAND +$1 RETVAL=$? @@ -35,7 +36,6 @@ fi # Registro de fin de ejecuciĆ³n -#echo "[END Interface] Command finished with this code: $RETVAL" | tee -a $OGLOGSESSION $OGLOGFILE echo "$MSG_INTERFACE_END $RETVAL" | tee -a $OGLOGSESSION $OGLOGFILE |