Molecular Modelling and GNU/Linux

Adding timestamps in crontabs

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 (…)

Derniers articles

Vous inscrire sur ce site

Vous avez demandé à intervenir sur un forum réservé aux personnes enregistrées.

Identifiants personnels

Indiquez ici votre nom et votre adresse email. Votre identifiant personnel vous parviendra rapidement, par courrier électronique.