hello,
apr�s avoir eu le m�me probl�me, et apr�s avoir lu le "man crontab" qui
dit dans la section "BUGS" :

       Although cron requires that each entry in a crontab end in
       a newline character, the neither the crontab  command  nor
       the  cron  daemon  will  detect  this  error. Instead, the
       crontab will appear load normally.  However,  the  command
       will  never  run.  The  best choice is to ensure that your
       crontab has a blank line at the end.


ce qui marche pour moi [woody] est un fichier /etc/crontab qui se termine
comme ceci { il y a en plus le "user" qui est indiqu� }:
#=======================================================
# sauvegarde
17 1 * * * root /root/bin/dump_var

!! et il y a l� une ligne blanche !!!

v��l�, v��l�
=======================================================
->je cr�� une commande crontab
->j'ai cr�� un scipt /etc/ppp/checkpppd.sh:qui fonctionne comme je le veux
->si je met dans la crontab root par crontab -e
->*/5 * * * * /etc/ppp/checkpppd.sh
->avec un <RC> en fin de ligne
->la commande n'est jamais ex�cut�e et je vois dans le fichier syslog une
->ligne toutes les 5 minutes (root) CMD /etc/ppp/checkpppd.sh
->Faut -il ajouter d'autre ligne dans la ctrontab pour que les lignes
->soient ex�cut�es normalement.

==================================
Gilles MISSONNIER - Projet Terapix
phone : [33] 01 44 32 81 36
http://terapix.iap.fr


Répondre à