diff options
author | irina <irinagomez@us.es> | 2013-09-19 09:26:54 +0000 |
---|---|---|
committer | irina <irinagomez@us.es> | 2013-09-19 09:26:54 +0000 |
commit | d36e8a60dd55aa32e8be2099bc2dd943ba9acfa5 (patch) | |
tree | ecfa232f87bc787614460a361fa0de730623a818 /admin | |
parent | fea9dfbc2f5874b319fcd66c827439f4241610ed (diff) |
interfaz InventarioSoftware: se muestra mensaje informativo en el log en tiempo real
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4043 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin')
-rwxr-xr-x | admin/Interface/InventarioSoftware | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/admin/Interface/InventarioSoftware b/admin/Interface/InventarioSoftware index fc0ed8d3..715f061c 100755 --- a/admin/Interface/InventarioSoftware +++ b/admin/Interface/InventarioSoftware @@ -1,3 +1,18 @@ #!/bin/bash + +TIME1=$SECONDS + +#Carga el configurador del engine desde el fichero engine.cfg +[ -z $OGENGINECONFIGURATE ] && source /opt/opengnsys/etc/engine.cfg + +# Limpia los ficheros temporales usados como log de seguimiento para httpdlog +echo -n " " | tee $OGLOGSESSION $OGLOGCOMMAND ${OGLOGCOMMAND}.tmp + +# Registro de inicio de ejecuciĆ³n +echo "$MSG_INTERFACE_START $0 $*" | tee -a $OGLOGSESSION $OGLOGFILE + file=$(listSoftwareInfo $1 $2) cp $file $3 + +TIME=$[SECONDS-TIME1] +echo " [ ] $MSG_SCRIPTS_TIME_PARTIAL : $[TIME/60]m $[TIME%60]s" | tee -a $OGLOGSESSION $OGLOGFILE |