[script linux] verifier execution d'un script

Fermé
bezourox Messages postés 729 Date d'inscription vendredi 30 mars 2007 Statut Membre Dernière intervention 19 janvier 2013 - 27 nov. 2009 à 12:25
Bonjour,

Voila j'ai mis u nscript en place pour reboot mon serveur 1 fois par semaine, ainsi que redémarrer les services DNS et DHCP tous les jours et faire une sauvegarde de base de données.

Voici le code de mon fichier /etc/crontab :

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file.
# This file also has a username field, that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user command
17 * * * * root run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || run-parts --report /etc/cron.daily
47 6 * * 7 root test -x /usr/sbin/anacron || run-parts --report /etc/cron.weekly
52 6 1 * * root test -x /usr/sbin/anacron || run-parts --report /etc/cron.monthly

# Transfert du dossier GM a 20h
0 20 * * * root /home/ludo/scripts/navette.sh

# Arret du transfert a 6h du matin (en cas de plantage)
0 6 * * * root /home/ludo/scripts/stopnavette.sh

# Sauvegarde des bases de données MySQL
0 2 * * * root /home/ludo/scripts/backupbdd.sh

# Redémarrage de bind a 12h50 tous les jours
50 12 * * * root /etc/init.d/bind9 restart #Initialisation Serveur DNS

# Redémarrage de Samba a 6h tous les matins
0 6 * * * root /etc/init.d/samba restart #Initialisation Serveur Samba

# Etat du serveur
0 5 * * * root /home/ludo/scripts/rapport.sh

# reboot serveur le lundi matin a 6h30
30 6 * * 1 root /sbin/shutdown -rF now


Voila maintenant j'aimerai vérifier que toutes ces tâches sont exécutées en temps et en heure... mais comment ?