Christophe Gaubert a écrit :

        Bonjour,

Cron vient de m'envoyer un mail pour râler sur le format de crontab
(/bin/bash: root: command not found). En effet, je lis dans le man que
le sixième champ de chaque ligne correspond à la commande lancée. Or
mon /etc/crontab se présente comme ça :

01 * * * * root nice -n 19 run-parts --report /etc/cron.hourly
02 4 * * * root nice -n 19 run-parts --report /etc/cron.daily
22 4 * * 0 root nice -n 19 run-parts --report /etc/cron.weekly
42 4 1 * * root nice -n 19 run-parts --report /etc/cron.monthly

Comme si le 6eme champs indiquait un propriétaire ! Vous avez une idée
d'où ça peut venir ?

christophe
j'ai ceci si ca peut aider :
vi /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 4 * * * root nice -n 19 run-parts --report /etc/cron.daily
22 4 * * 0 root nice -n 19 run-parts --report /etc/cron.weekly
42 4 1 * * root nice -n 19 run-parts --report /etc/cron.monthly
~




=========================================
Vous souhaitez acquerir votre Pack ou des Services Mandriva?
Rendez-vous sur "http://store.mandriva.com";.
Rejoignez le club mandrake : http://www.mandrivaclub.com
=========================================

Répondre à