PDA

View Full Version : Cron Email


mcmuney
08-29-2007, 06:41 AM
I'm getting this cron email every hour, but I don't see such a cron listed under cron jobs (Subject: Cron <root@s15246772> run-parts /etc/cron.hourly), how do I turn this thing off? I even stopped "crond" and I continued to get this on the hour:

/etc/cron.hourly/sendmail:

sendmail: illegal option -- q
sendmail: usage: sendmail [ -t ] [ -fsender ] [ -Fname ] [ -bp ] [ -bs ] [ arg ... ]

inc595
09-02-2007, 03:05 PM
It sounds like you have a script called sendmail in /etc/cron.hourly. Any scripts placed here will be executed every hour. Rather then turning off cron which could cause system clean up scripts and statistics reporting to back up. You should repair the script or move it out of this directory. The error also tells you what is wrong with the script and it is using on an invalid option.

mcmuney
09-04-2007, 06:55 PM
Here's the strange part, under /etc/cron.hourly/ it's complete empty (no files or folders present).

inc595
09-23-2007, 11:34 PM
Check your cron log.

/var/log/cron

You may also want to check /etc/cron.d it could be specified within a script here or "crontab -l" will list crons for your user.