Comment lancer un script php via CronniX ?

starbus a dit:
Tout est dans le titre.
ça fait 2 heures que j'éssaye :(
Je sais, je ne suis pas fortiche.

Et si tu l'inclus dans un AppleScript et que tu démarre celui-ci avec ton cron....

Marc-andré
 
  • J’aime
Réactions: starbus
on dirait que ça marche avec "/usr/bin/php -q "
Par contre, j'ai 5 ou 6 warning du style "failed to open stream: No such file or directory in "
et ça fini par un "Fatal error: Call to undefined function: adonewconnection() in"
Le script marche en manuel, mais il y a un mot de passe.
Comment je fait pour le rentrer dans le cron ?
 
starbus a dit:
on dirait que ça marche avec "/usr/bin/php -q "
Par contre, j'ai 5 ou 6 warning du style "failed to open stream: No such file or directory in "
et ça fini par un "Fatal error: Call to undefined function: adonewconnection() in"
Le script marche en manuel, mais il y a un mot de passe.
Comment je fait pour le rentrer dans le cron ?

/usr/bin/php -f /usr/local/daily-script/today.php