URL: https://linuxfr.org/forums/general-general/posts/cron-et-red-hat Title: cron et red hat Authors: arnbret Date: 2005年03月02日T12:51:47+01:00 Tags: Score: 0 Automatiser envoi mail ne marche pas avec crontab. mon script php : testenvoi.php situé sur le serveur dans un repertoire :/home/testmail/ #!/usr/local/bin/php mail("test@test.com","sujet","corps du sujet"); ma crontab : SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # run-parts 01 * * * * root run-parts /etc/cron.hourly 02 4 * * * root run-parts /etc/cron.daily 22 4 * * 0 root run-parts /etc/cron.weekly 42 4 1 * * root run-parts /etc/cron.monthly # vpopmail 40 * * * * root /home/vpopmail/bin/clearopensmtp 2>&1 > /dev/null # envoi email automatique 25 12 * * 3 root /home/testmail/testenvoi.php Ou est l'erreur ? le chemin d'acces au fichier php est il le bon ? oui à priori ? J'ai fait des tests : lancement du script testenvoi.php à partir du navigateur => ça marche parfaitement (en modifiant évidemment la ligne magique par <?php ?>). En ligne de commande : /usr/local/bin/php /home/testmail/testenvoi.php => marche pas Status: 404 Content-type: text/html X-Powered-By: PHP/4.3.8 No input file specified. Ne trouve pas le fichier alors que j'ai fait les chmod 755 approprié. Qui peut m'aider ?