La crontab pour les nuls
Conclusion
Le guide est à présent terminé !
Pour être sûr que vous ayez bien compris comment se construit une ligne de crontab, déchiffrez donc la tâche suivante :
45 8-12 4,9,20 jan,jun,jul,aug,dec cryonid df -h > /home/cryonid/logs/cron_logs.txt
Voici la correction, ne la regardez pas avant d’avoir cherché ! :
La commande df -h s’exécutera en tant qu’utilisateur cryonid toutes les heures à la 45ème minute entre 8h et 12h les 4, 9 et 20 du mois de janvier, juin, juillet, août et décembre. Les résultats de cette commande (ce qui sort de STDOUT et STDERR) seront stockés dans le fichier /home/cryonid/logs/cron_logs.txt.
Bonsoir,
Merci pour cet article très intéressant et complet.
I believe what you typed made a great deal of sense. However,
what about this? suppose you added a little content?
I mean, I don’t want to tell you how to run your website, but
what if you added something that makes people want more?
I mean La crontab pour les nuls – Cryonid.fr is a little vanilla.
You ought to glance at Yahoo’s home page and see how they create news headlines to get viewers to open the links.
You might try adding a video or a related pic or two to get people excited about
everything’ve got to say. Just my opinion, it could make your blog
a little livelier.