Tâche cron php Tiny RSS
... / Tâche cron php Tiny RSS
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

Tâche cron php Tiny RSS

by
DanielT1
Created on 2020-06-04 14:20:57 (edited on 2024-09-04 12:52:38) in Tâches automatiques (cron)

Bonjour à tous,

Possédant un hébergement mutualisé, j'ai installé Tiny Tiny RSS.

Afin de rafraichir les flux RSS toutes les heures, j'ai créer un script PHP nommé update.php à la racine du répertoire d'installation :

#!/usr/bin/env PHP
system('/usr/local/php7.3/bin/php /home/tcbwfyu/rss/update.php --feeds --quiet');
?>
"/home/tcbwfyu/RSS/update.php" étant le chemin absolu du script.

Dans l'interface de création de tâches cron j'ai mis ceci :


> Commande à exécuter : ./home/tcbwfyu/RSS/update.php
> Langage : PHP 7.3
> État : Activé
> Crontab : 22 * * * *

Le problème étant qu'elle ne s'exécute pas et il n'y aucun message dans les logs.

Auriez-vous une solution ?

Merci d'avance.


3 Replies ( Latest reply on 2020-06-04 15:18:14 by
kyodev
)

> ./home/tcbwfyu/RSS/update.php

enlève le ` .` initial :
`/home/tcbwfyu/RSS/update.php`

ok alors ça va

tu as testé ton script manuellement?
comme tu déclares le langage php, pas besoin de shebang,

pourquoi *"impression"*?
comment avancer avec ça?
pourquoi system() et pas exec()?
(je ne sais pas si une cause possible)