
Estou reparando um problema no meu crontab, ele rodou todos os arquivos sem nenhum problema mas de repente parou de rodar, mostra no syslog que o arquivo foi executado mas fiz um teste php que construí um txt e escrevi isso algo dentro Coloquei no cron e aparece no syslog executado mas não abriu o arquivo php, notei isso em todos os outros arquivos que o possuem.
Registro do sistema:
Oct 1 08:32:53 cpro45509 crontab[29419]: (www-data) LIST (www-data)
Oct 1 08:33:01 cpro45509 CRON[29432]: (www-data) CMD (/usr/bin/php /home/kdl/site/lab/NewLeaflet/php/progmuc.php 1624001010 2 2040001 1 2)
Oct 1 08:33:01 cpro45509 CRON[29431]: (CRON) info (No MTA installed, discarding output)
Crontab:
28 08 * * * /usr/bin/php /home/kdl/site/lab/NewLeaflet/php/progmuc.php 1624001010 1 2040001 1 2
33 08 * * * /usr/bin/php /home/kdl/site/lab/NewLeaflet/php/progmuc.php 1624001010 2 2040001 1 2
PHP:
<?php
$fp = fopen("testeee.txt", "a");
// Escreve "exemplo de escrita" no bloco1.txt
$escreve = fwrite($fp, "Funcionou");
// Fecha o arquivo
fclose($fp);