Hallo, I think the right way is to add logging into the script with all details for debug and and monitoring. Ralf Von meinem iPhone gesendet > Am 15.11.2019 um 18:55 schrieb John Horne <john.horne at plymouth.ac.uk>: > > Hello, > > In trying to resolve a problem with a cron job, we can see when the job starts > by looking in the /var/log/cron log file. However, I was asked if when the job > ends could also be logged. (It seems to be something that crops up every so > often over the years.) > > I found on the 'net this article > https://serverfault.com/questions/248915/crontab-is-there-any-log-with-begin-and-end-time > > which mentions a loglevel (-L) option, and by setting this to 2 it will log > when a cron job ends. It sounds great, and just what we could use. The downside > is that there seems to be no such option anymore. The article is several years > old but the users says they are using anacron. Checking on both a CentOS 7 and > Fedora 31 system, which both use cronie-anacron, I could find no mention of any > loglevel. > > Does anyone know what happened to this option (why it was removed)? It would > seem to be useful, but removed at some time. > > > > Thanks, > > John. > > -- > John Horne | Senior Operations Analyst | Technology and Information Services > University of Plymouth | Drake Circus | Plymouth | Devon | PL4 8AA | UK > ________________________________ > [http://www.plymouth.ac.uk/images/email_footer.gif]<http://www.plymouth.ac.uk/worldclass> > > This email and any files with it are confidential and intended solely for the use of the recipient to whom it is addressed. If you are not the intended recipient then copying, distribution or other use of the information contained is strictly prohibited and you should not rely on it. If you have received this email in error please let the sender know immediately and delete it from your system(s). Internet emails are not necessarily secure. While we take every care, University of Plymouth accepts no responsibility for viruses and it is your responsibility to scan emails and their attachments. University of Plymouth does not accept responsibility for any changes made after it was sent. Nothing in this email or its attachments constitutes an order for goods or services unless accompanied by an official order form. > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos