Re: [CentOS] Cron - log when job ends?

2019-11-18 Thread Jonathan Billings
On Mon, Nov 18, 2019 at 10:50:57AM +, John Horne wrote: > Sorry, I should have been more clear. I'm not looking for a 'per-script' > solution. Logging when a job starts is performed by crond, so logging when it > ends should also be done by crond. For what it's worth, you'll see entries in the

Re: [CentOS] Cron - log when job ends?

2019-11-18 Thread John Horne
On Fri, 2019-11-15 at 16:32 -0500, Karl Vogel wrote: > > > On Fri, Nov 15, 2019 at 05:54:07PM +, John Horne wrote: > > J> In trying to resolve a problem with a cron job, we can see when the job > J> starts by looking in the /var/log/cron log file. However, I was asked if > J> when the job ends

Re: [CentOS] Cron - log when job ends?

2019-11-16 Thread Ralf Prengel
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 : > > Hello, > > In trying to resolve a problem with a cron job, we can see when the job starts > by looki

[CentOS] Cron - log when job ends?

2019-11-15 Thread John Horne
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