Tâches automatiques (cron) - Cron mutualisé fichier php avec argument PhpList
... / Cron mutualisé fichier ph...
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.
Frage

Cron mutualisé fichier php avec argument PhpList

Von
AlexandreVDev
Erstellungsdatum 2019-03-16 16:26:43 (edited on 2024-09-04 12:20:26) in Tâches automatiques (cron)

Bonjour,

j'essaye en vain de mettre la tache cron pour PHPList mais sur OVH impossible de spécifier des arguments pour un script PHP.
Je choisi donc "Autre" dans la liste language
mon fichier est à la base de mon hébergement dont je suis sûr du chemin car j'ai d'autre scripts à cet endroit sauvegarde db etc qui eux fonctionne.
dedans j'ai :
> \#!/bin/bash

> echo test

> /usr/local/php7.2/bin/php /homez.59/tdgvegxs/phplist/admin/index.php -pprocessqueue -c/homez.59/tdgvegxs/phplist/config/config.php

et le log me dit :
> [2019-03-16 14:23:02] ## OVH ## START - 2019-03-16 14:23:02.506791 executing: /homez.59/tdgvegxs/phplist.sh
> [2019-03-16 14:23:02] No such file or directory
> [2019-03-16 14:23:02]
> [2019-03-16 14:23:02] ## OVH ## END - 2019-03-16 13:23:02.563390 exitcode: 255
> [2019-03-16 15:23:02] ## OVH ## START - 2019-03-16 15:23:02.540998 executing: /homez.59/tdgvegxs/phplist.sh
> [2019-03-16 15:23:02] No such file or directory
> [2019-03-16 15:23:02]
> [2019-03-16 15:23:02] ## OVH ## END - 2019-03-16 14:23:02.567194 exitcode: 255

Si quelqu'un à la solution je lui en serais très reconnaissant, merci merci merci !!:


4 Antworten ( Latest reply on 2019-03-23 07:04:48 Von
Daniel60
)

Bonjour,

merci pour votre réponse, effectivement je fait comme sa d'habitude mais pour PHPList sa ne fonctionne pas il demande a être exécuté depuis une ligne de commande.

Je vais essayer de contacter le support.
Merci.

Bon c'est résolu, les retour de ligne dans le fichier n'était pas au format UNIX.
Maintenant sa fonctionne.

Un classique