Quote:
Originally Posted by jason_not
Hi,
I would first start by looking in all of the crontab files: on ubuntu the crontabs are stored in /var/spool/cron/crontabs. Next, is there a directory like /etc/cron.d to put arbitrary crontabs in?
|
there are not files in the /var/spool/cron/crontabs. I have a directory /etc/cron.d/ which contains 2 files: anacron and sendmail.
Quote:
When you say you added ">/dev/null 2>&1" to the end of the line, do you mean the cron.weekly line in /etc/crontab? Is there anything in the cron.weekly file that might be generating output?
|
Yes, at the end of the weekly command. In the copy I posted above, I am trying to redirect the output to a file (/var/log/StopSendingEmail.log). The messages are definitely from my script that is in the cron.weekly folder.
Quote:
Do the contents of the emails themselves actually change? (not the data, just the form...) Also, is it possible cron is generating output to syslog and it's syslog that's sending the weekly output?
|
It's the same messages, once a week:
To: root@localhost
Subject: Anacron job 'cron.weekly' on fccu-proxy
/etc/cron.weekly/copyproxylog:
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Restarting DansGuardian: dansguardian.
Quote:
A way you can simulate the operating environment of cron is to setup an "at" job: have "at" run the cron file so you can force it. YOu might even run strace on the cron script to see what the system is doing. I use strace all the time to find out what scripts are actually doing.
--jason
|
when i manually run the script (that is in the /etc/cron.weekly folder), the messages I normally get in the email are printed to the screen and no email goes out.