Bonjour,
Je n’arrive pas à programme correctement des tâches cron quotidienne. En effet, j’ai mis celà :
[code]crontab -l
m h dom mon dow command
@daily /etc/cron.daily/apticron
@daily sh /root/eth_stats.sh[/code]
la tâche “apticron” s’éxécute à 0h00 et à 6h25 tous les jours
le script “eth_stats.sh” s’éxécute à 0h00 tous les jours
Donc je voudrais comprendre pourquoi cet apticron s’obstine à s’éx"cuter 2 fois par jours !
PS 1 : si je commente (ou supprime) la ligne concernant apticron avec un “crontab -e” alors apticron n’est plus du tout éxécuté.
PS 2 : [code]cat /etc/cron.daily/apticron
#!/bin/sh
if [ ! -x /usr/sbin/apticron ] ; then
exit 0
else
/usr/sbin/apticron
fi[/code]
PS 3 : [code]cat /etc/crontab
… … …
m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily … … …[/code]
Merci pour vos idées.