Christophe Gaubert a écrit :
L'appel à run-parts a pour effet d'éxécuter tous les scripts du répertoire donné, et donc, normalement de mettre à jour le fichier dateur d'anacron, si tous les composants précédents sont là...
J'ai exactement les même éléments dans mes fichiers que dans les tiens (hormis l'heure bien sûr) - voir ci-dessous - Bon c'est pas grave je verrais demain matin si tout se passe bien. Je me demande si anacron ne regarde pas simplement si à une date donnée les processus ont bien été lancés (sans s'occuper de l'heure), ce qui expliquerait le pourquoi de la chose... Bien à toi Jean [EMAIL PROTECTED] cron.daily]# cat /etc/crontab SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # run-parts 01 * * * * root nice -n 19 run-parts --report /etc/cron.hourly 02 19 * * * root nice -n 19 run-parts --report /etc/cron.daily 32 19 * * 0 root nice -n 19 run-parts --report /etc/cron.weekly 52 19 1 * * root nice -n 19 run-parts --report /etc/cron.monthly [EMAIL PROTECTED] cron.daily]# cd /var/spool [EMAIL PROTECTED] spool]# ls -l | grep anacron drwxr-xr-x 2 root root 1024 oct 17 10:56 anacron/ [EMAIL PROTECTED] spool]# cd anacron [EMAIL PROTECTED] anacron]# ll total 3 -rw------- 1 root root 9 nov 26 12:48 cron.daily -rw------- 1 root root 9 nov 16 14:04 cron.monthly -rw------- 1 root root 9 nov 26 12:40 cron.weekly [EMAIL PROTECTED] anacron]# cd /etc [EMAIL PROTECTED] etc]# cd cron.weekly [EMAIL PROTECTED] cron.weekly]# cat 0anacron #!/bin/sh # # anacron's cron script # # This script updates anacron time stamps. It is called through run-parts # either by anacron itself or by cron. # # The script is called "0anacron" to assure that it will be executed # _before_ all other scripts. anacron -u cron.weekly [EMAIL PROTECTED] cron.weekly]# -- Écrit à partir de logiciels libres : Mandriva 2007 / Thunderbird
========================================= Vous souhaitez acquerir votre pack ou des services Mandriva? Rendez-vous sur "http://store.mandriva.com". Rejoignez le club Mandriva : http://club.mandriva.com =========================================
