QUESTION Getting emails hourly that say "Not a directory: --report"

jeff.h

Guru
Joined
Dec 1, 2010
Messages
502
Reaction score
71
Just spun up 4 new droplets of CentOS 6.7, Incredible 13-12.3 and am not getting hourly email reports from all 4 of them that say "Not a directory: --report".

How do I fix this?

On a side note I noticed that the build is 12.0.38 when the ones I built a few months ago were 12.0.39.

Screen Shot 2016-01-07 at 9.18.27 AM.png

Thanks,

Jeff
 
I had the same problem. Most likely in /etc/crontab there is a line that looks like the following:
17 * * * * root run-parts --report /etc/cron.hourly

If you comment it out the messages will stop Or you can make it look like the others.
Something like:
17 * * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.hourly )
I actually think that is the right answer but all of the stuff in that file is non-standard on a Centos 6 machine, so I am not sure why this was done.

The stock crontab on Centos6 looks like the following:
(bugs pts7) # cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# For details see man 4 crontabs

# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed

HTH,

Tom
 
it depends on the user doing the cron job, try

crontab -e -u asterisk
 

Members online

Forum statistics

Threads
26,688
Messages
174,412
Members
20,258
Latest member
RandomPerson
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top