lo deje asi y no paso nada:
Código PHP:
#!/usr/bin/php -q
<?php
include("bd.class.php");
$bd = new ZonaGammer;
$bd->connect();
$bd->vaciar_bd_postulaciones();
$id_sorteo = $_POST['id_sorteo'];
if(!$_POST):
echo "Este servicio solo recibe datos por POST";
else:
foreach($_POST as $key => $value):
if(!is_numeric($value)):
$bd->ReadWebService($value, $id_sorteo);
endif;
endforeach;
shell_exec('/usr/bin/php -f /home/legalint/public_html/zonacanje/webservice/daemon_stombola.php');
endif;
?>
update: estaba pensandoq ue no correo quizas por que el script /home/legalint/public_html/zonacanje/webservice/daemon_stombola.php pertenece al usuario www y quizas no tenga permisos para correr desde curl... seria algo así???
gracias