summaryrefslogtreecommitdiffstats
path: root/admin/Interface/EjecutarScript
diff options
context:
space:
mode:
authoradv <adv@uma.es>2011-05-12 23:36:44 +0000
committeradv <adv@uma.es>2011-05-12 23:36:44 +0000
commite1c0cac3acef5667895ccb2df4c0e6f57a95295a (patch)
tree71a9c9882da23a3eba6ec636cc2e9bfcb0be0fad /admin/Interface/EjecutarScript
parent445ed288bddf5c869e652259182c2c948da3f9de (diff)
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
Diffstat (limited to 'admin/Interface/EjecutarScript')
-rwxr-xr-xadmin/Interface/EjecutarScript13
1 files changed, 12 insertions, 1 deletions
diff --git a/admin/Interface/EjecutarScript b/admin/Interface/EjecutarScript
index 101bd15f..3de64815 100755
--- a/admin/Interface/EjecutarScript
+++ b/admin/Interface/EjecutarScript
@@ -7,4 +7,15 @@ echo -e >> $OGLOGFILE
echo -e >> $OGLOGFILE
echo "Salida: *****************************" >> $OGLOGFILE
chmod +x $1
-$1 &>> $OGLOGFILE || exit $?
+$1 &>> $OGLOGFILE
+RETVAL=$?
+echo $RETVAL &>> $OGLOGFILE
+
+if [ $RETVAL == 0 ]
+then
+ rm $OGLOGFILE
+ touch $OGLOGFILE
+else
+ echo $RETVAL &>> $OGLOGFILE
+fi
+exit $RETVAL \ No newline at end of file