Bonjour à tous,
Je recontre actuellement un problème avec une tâche plannifiée CRON sur OVH.
J'essaye de mettre en place l'automatisation de l'import d'un fichier .csv (stocké sur le FTP) sur Joomla (extension RO CSVI) pour mettre à jour les stocks produits de mon e-shop.
J'ai lu attentivement le tutoriel de l'extension Joomla qui donne quelques exemples :
Including the arguments the full command for an import can look like this:
Using template name in argument
/usr/local/bin/php /home/domain/public_html/administrator/components/com_csvi/helper/cron.php --key="mysecretword"
--template_name="CSVI Product import" --file="/home/domain/public_html/example.csv"
Voici ce que donne le LOG CRON OVH :
[2023-01-20 16:16:02] ## OVH ## START - 2023-01-20 16:16:02.326643 executing: /homez.488/sengafradc/import_stock_xml.sh
[2023-01-20 16:16:02] /homez.488/sengafradc/import_stock_xml.sh: line 2: /usr/bin/php: No such file or directory
[2023-01-20 16:16:02]
[2023-01-20 16:16:02] ## OVH ## END - 2023-01-20 16:16:02.349532 exitcode: 127
Voici ce que contient mon fichier
/usr/bin/php /home/sengafradc/www/SENGAv2/administrator/components/com_csvi/helper/cron.php --key="mysecretword" --template_name="stock_import_XML" --file="/home/sengafradc/xml/exportstock/exportstock.csv"
Avez-vous une idée de quel pourrait être le problème ?
En vous remerciant d'avance
Valentin