Spam Report in Crontab |
![]() ![]() |
Spam Report in Crontab |
Jun 28 2007, 03:15 AM
Post
#1
|
|
![]() Member ![]() ![]() Group: Members Posts: 25 Joined: 21-October 05 From: Brisbane, Australia Member No.: 761 |
Hi
I have setup spamReport.pl as provided here http://forums.rvskin.com/index.php?showtopic=1308 And it runs ok on the command line but with this error ... perl /var/log/spamReport.pl Unsuccessful stat on filename containing newline at /var/log/spamReport.pl line 120. I've changed all references of eximstats to /usr/sbin/eximstats in the file I'm having trouble getting crontab to email me with this job I used crontab -e to get it into the cron 0 4 * * * perl /var/log/spamReport.pl But it never emails me. However I get emails of all my other crontabs PS I redirected the output to a file to make sure the cron was running ok, and it is, just no emails. Thanks Aaron -------------------- Aaron Dwyer
Australian Small Business Web Hosting |
|
|
|
Jun 28 2007, 09:45 PM
Post
#2
|
|
|
Administrator ![]() ![]() ![]() Group: Admin Posts: 4,252 Joined: 13-June 03 Member No.: 1 |
Please download the new one at http://www.rvskin.com//spamReport.txt.
|
|
|
|
Jun 29 2007, 07:33 PM
Post
#3
|
|
![]() Member ![]() ![]() Group: Members Posts: 25 Joined: 21-October 05 From: Brisbane, Australia Member No.: 761 |
Please download the new one at http://www.rvskin.com//spamReport.txt. Still didn't fix my error, but I got emails working by setting up a crontab like this 32 22 * * * perl /var/log/spamReport.pl | mail -s "Spam Report" email@youremailaddress.com Thanks Aaron -------------------- Aaron Dwyer
Australian Small Business Web Hosting |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 3rd September 2010 - 12:47 AM |