summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authoralonso <alonso@us.es>2014-03-03 11:31:33 +0000
committeralonso <alonso@us.es>2014-03-03 11:31:33 +0000
commita8fc2761fc0fed21bbb48e73af3baf67d00d8102 (patch)
tree7ab6cc6bee165918e13216bb1f9454e57532d6e8 /admin
parentc69c76685042e7e900a1b26059b9cbbe9faa284a (diff)
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4171 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin')
-rw-r--r--admin/Sources/Clients/ogAdmClient/sources/ogAdmClient.c2
-rw-r--r--admin/Sources/Clients/ogAdmLnxClient/sources/ogAdmLnxClient.c12
2 files changed, 9 insertions, 5 deletions
diff --git a/admin/Sources/Clients/ogAdmClient/sources/ogAdmClient.c b/admin/Sources/Clients/ogAdmClient/sources/ogAdmClient.c
index 6154fe2c..90e8adfb 100644
--- a/admin/Sources/Clients/ogAdmClient/sources/ogAdmClient.c
+++ b/admin/Sources/Clients/ogAdmClient/sources/ogAdmClient.c
@@ -6,7 +6,7 @@
// Nombre del fichero: ogAdmClient.c
// Descripción :Este fichero implementa el cliente general del sistema
// ********************************************************************************************************
-//?????
+
#include "ogAdmClient.h"
#include "ogAdmLib.c"
//________________________________________________________________________________________________________
diff --git a/admin/Sources/Clients/ogAdmLnxClient/sources/ogAdmLnxClient.c b/admin/Sources/Clients/ogAdmLnxClient/sources/ogAdmLnxClient.c
index 47e27b1a..be5a9409 100644
--- a/admin/Sources/Clients/ogAdmLnxClient/sources/ogAdmLnxClient.c
+++ b/admin/Sources/Clients/ogAdmLnxClient/sources/ogAdmLnxClient.c
@@ -22,7 +22,7 @@
//______________________________________________________________________________________________________
BOOLEAN EjecutarScript(TRAMA* ptrTrama)
{
- int lon,resul;
+ int lon,resul,res;
char *nfn,*ids,*scp,msglog[LONSTD];
char modulo[] = "EjecutarScript()";
@@ -36,16 +36,20 @@ BOOLEAN EjecutarScript(TRAMA* ptrTrama)
nfn=copiaParametro("nfn",ptrTrama);
ids=copiaParametro("ids",ptrTrama);
+ res=0;
/* Nombre del archivo de script */
char filescript[LONPRM];
sprintf(filescript,"/tmp/_script_%s",IPlocal);
if(!escribeArchivo(filescript,scp)){
errorLog(modulo, 52, FALSE);
+ res=52; // Error al crear fichero de comandos
}
- resul=system(filescript);
- if (resul>0) {
- errorLog(modulo, 86, FALSE);
+ if(res==0){
+ resul=system(filescript);
+ if (resul>0) {
+ errorLog(modulo, 86, FALSE);
+ }
}
initParametros(ptrTrama,0);