Tâche CRON commande Symfony 4
... / Tâche CRON commande Symfony 4
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 commande Symfony 4

by
DeborahM
Created on 2019-02-20 18:52:30 (edited on 2024-09-04 13:19:39) in Tâches automatiques (cron)

Bonjour,

J'ai crée une commande Symfony, qui doit être exécutée par un tâche CRON.
Sur mon hébergement (mutualisé), je vais pour planifier ma tâche.
Et là, je rentre la commande suivante :
/usr/local/php7.1/bin/php /home/mon_nom_utilisateur/nom_du_dossier/ bin/console app:purge-user
Et j'obtiens cette erreur :
Les caractères acceptés pour les dossiers sont les lettres, les chiffres, et les caractères -_./ Par ailleurs, il est interdit d'accéder aux dossiers parents en utilisant ..
J'ai du mal à trouver de la doc claire sur les tâches CRON sur OVH pour écrire cette commande "correctement".

Pourriez-vous m'aider s'il vous plait ?
Merci


1 Reply ( Latest reply on 2019-02-20 19:22:31 by
kyodev
)

la doc?..
https://i.imgur.com/x53pFv1.png

https://docs.ovh.com/fr/hosting/mutualise-taches-automatisees-cron/


là je vois un espace de trop (`/ bin`) et une commande?
pas un script