Crontab entries are great to periodically execute a command, but lack advanced logging facilities. This article will just highlight a rapid tip to enhance this situation.
The cron service is meant to execute periodically a given task, but it lacks a proper logging facility.
To add a specific unique logging entry, we will use a variable define inside the crontab command line. Here is the content of my command line
LOG=/home/me/log/ PROGDIR=/home/me/bin
22 6 * * 1-7 (…)
La langage python est récemment devenu très populaire de par sa facilité apparente d’utilisation. Il reste néanmoins un langage informatique qui comporte des notions complexes, et une fois les premiers programmes écrits (scripts), il faut assez rapidement réfléchir à structurer le programme pour (…)