[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cron



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




Reply to: