close
          Warning:
          Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
      
 
    
        
        
        
        
        
          918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
        
      
      
        
  | Line |  | 
|---|
| 1 | #!/bin/bash | 
|---|
| 2 | TIME1=$SECONDS | 
|---|
| 3 |  | 
|---|
| 4 |  | 
|---|
| 5 | #Load engine configurator from engine.cfg file. | 
|---|
| 6 | #Carga el configurador del engine desde el fichero engine.cfg | 
|---|
| 7 | [ -z $OGENGINECONFIGURATE ] && source /opt/opengnsys/etc/engine.cfg | 
|---|
| 8 |  | 
|---|
| 9 | # Clear temporary file used as log track by httpdlog | 
|---|
| 10 | # Limpia los ficheros temporales usados como log de seguimiento para httpdlog | 
|---|
| 11 | echo " " > $OGLOGSESSION; echo " " > $OGLOGCOMMAND; echo " " > ${OGLOGCOMMAND}.tmp | 
|---|
| 12 |  | 
|---|
| 13 | # Registro de inicio de ejecución | 
|---|
| 14 | #echo "[START Interface ] Run this command: $0 $*" | tee -a $OGLOGSESSION $OGLOGFILE | 
|---|
| 15 | echo "$MSG_INTERFACE_START $0 $*" | tee -a $OGLOGSESSION $OGLOGFILE | 
|---|
| 16 |  | 
|---|
| 17 | echo "Instrucciones a ejecutar: *****************************" >>  $OGLOGFILE | 
|---|
| 18 | cat  $1 >> $OGLOGFILE | 
|---|
| 19 |  | 
|---|
| 20 |  | 
|---|
| 21 | echo "Salida de las instrucciones: *****************************" >>  $OGLOGFILE | 
|---|
| 22 | chmod +x $1 | 
|---|
| 23 | $1 &>> $OGLOGCOMMAND | 
|---|
| 24 | RETVAL=$? | 
|---|
| 25 |  | 
|---|
| 26 |  | 
|---|
| 27 |  | 
|---|
| 28 | TIME=$[SECONDS-TIME1] | 
|---|
| 29 | if [ $RETVAL == 0 ] | 
|---|
| 30 | then | 
|---|
| 31 | echo "[100] Duracion de la operacion $[TIME/60]m $[TIME%60]s" | tee -a $OGLOGSESSION $OGLOGFILE | 
|---|
| 32 | else | 
|---|
| 33 | echo "ERROR no operacion no realizada" | tee -a $OGLOGSESSION $OGLOGFILE | 
|---|
| 34 | fi | 
|---|
| 35 |  | 
|---|
| 36 |  | 
|---|
| 37 | # Registro de fin de ejecución | 
|---|
| 38 | #echo "[END Interface] Command finished with this code:  $RETVAL" | tee -a $OGLOGSESSION $OGLOGFILE | 
|---|
| 39 | echo "$MSG_INTERFACE_END $RETVAL" | tee -a $OGLOGSESSION $OGLOGFILE | 
|---|
| 40 |  | 
|---|
| 41 |  | 
|---|
| 42 |  | 
|---|
| 43 | exit $RETVAL | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.