diff options
Diffstat (limited to 'admin/WebConsole/comandos/gestores/gestor_Comandos.php')
-rw-r--r-- | admin/WebConsole/comandos/gestores/gestor_Comandos.php | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/admin/WebConsole/comandos/gestores/gestor_Comandos.php b/admin/WebConsole/comandos/gestores/gestor_Comandos.php index 757b9cea..664307be 100644 --- a/admin/WebConsole/comandos/gestores/gestor_Comandos.php +++ b/admin/WebConsole/comandos/gestores/gestor_Comandos.php @@ -242,11 +242,20 @@ if($sw_ejya=='on' || $sw_ejprg=="on" ){ $ValorParametros=extrae_parametros($parametros,chr(13),'='); $script=@urldecode($ValorParametros["scp"]); if($sw_ejya=='on'){ - if (($sw_seguimiento == 1 || $sw_ejprg == "on") && - $idcomando != OG_CMD_ID_WAKEUP) - run_schedule($cadenaip); - else + if ($sw_seguimiento == 1 && + $idcomando != OG_CMD_ID_WAKEUP) { + $when = now_params(); + $resul = create_schedule(strval($sesion), + $EJECUCION_PROCEDIMIENTO, + "", $when['map_year'], + $when['map_month'], + 0, 0, $when['map_day'], + $when['map_hour'], + $when['map_am_pm'], + $when['map_minute']); + } else { run_command($idcomando, $cadenaip, $cadenamac, $atributos); + } // En agente nuevo devuelvo siempre correcto $resulhidra = 1; |