View previous topic :: View next topic |
Author |
Message |
Ulrar n00b

Joined: 25 May 2006 Posts: 74
|
Posted: Fri Jan 16, 2009 6:37 pm Post subject: [RESOLU][CRON] commande jamais executée ? |
|
|
Bonjour,
J'utilisais Crontab, y a un moment, et j'avais aucun probleme.
J'en ai plus eu besoin pendant .. au moin un an, et j'ai du oublier un detail parce que j'y arrive plus du tout ..
J'avais essayer, y a quelques temps, de me mettre un arret automatique avec shutdown, mais jamais eu moyen, le PC restait allumer. Mais bon, c'etait pas important j'ai pas chercher.
Maintenant, je dois, et la c'plus important deja, faire executer un script php toutes les heures.
Ma commande est bonne, j'ai verifié, si je la lance moi meme, ça marche impecable, mais cron ne doit pas la lancer ...
Voila un crontab -l :
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.XXXXJPuxhv installed on Sat Jan 3 17:32:07 2009)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
35 * * * * php5 /chemin/vers/script_heure.php >> /chemin/log_heure.txt
J'ai donc bien utilisé crontab -e pour mettre ça dedans et tout, pas de problemes.
Seulement, le script n'est jamais executé ...
Last edited by Ulrar on Fri Jan 16, 2009 10:21 pm; edited 1 time in total |
|
Back to top |
|
 |
Oupsman Veteran

Joined: 19 Jul 2004 Posts: 1042
|
Posted: Fri Jan 16, 2009 6:52 pm Post subject: |
|
|
message supprimé _________________ --
L'idéal de nouveauté semble avoir remplacé l'idéal de progrès. C'est bien triste.
----
Unix philosophy: "Do one thing and do it well."
systemd: "Try to do everything and do it wrong."
Last edited by Oupsman on Sun May 19, 2013 10:38 am; edited 1 time in total |
|
Back to top |
|
 |
Ulrar n00b

Joined: 25 May 2006 Posts: 74
|
Posted: Fri Jan 16, 2009 10:21 pm Post subject: |
|
|
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.XXXX1Typ6Z installed on Fri Jan 16 21:00:34 2009)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
00 * * * * /usr/local/bin/php5 /chemin/vers/script_heure.php >> /chemin/vers/log_heure.txt
Comme ça ?
On dirait que ça marche ...
ça a pas marcher le premier coup, mais j'ai pas eu le temps de voir ça, et je vien de regarder la, apparament le script a été executée ces deux dernieres heures, cool ! =).
Merci ! |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|