source: admin/Interface/EjecutarScript @ 9ff7b49

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
Last change on this file since 9ff7b49 was e1c0cac3, checked in by adv <adv@…>, 14 years ago

version 1.0.1 #381 interface de ejecutar scripts

git-svn-id: https://opengnsys.es/svn/branches/version1.0@1972 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100755
File size: 419 bytes
Line 
1#!/bin/bash
2
3echo -e >>  $OGLOGFILE
4echo "Contenido de la ejecucion: *****************************" >>  $OGLOGFILE
5cat  $1 >> $OGLOGFILE
6echo -e >>  $OGLOGFILE
7echo -e >>  $OGLOGFILE
8echo "Salida: *****************************" >>  $OGLOGFILE
9chmod +x $1
10$1 &>> $OGLOGFILE
11RETVAL=$?
12echo $RETVAL &>> $OGLOGFILE
13
14if [ $RETVAL == 0 ]
15then
16        rm $OGLOGFILE
17        touch $OGLOGFILE
18else
19        echo $RETVAL &>> $OGLOGFILE
20fi
21exit $RETVAL
Note: See TracBrowser for help on using the repository browser.