.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Spam Report in Crontab
aarondwyer
post 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


--------------------
Go to the top of the page
 
+Quote Post
pairote
post 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.
Go to the top of the page
 
+Quote Post
aarondwyer
post Jun 29 2007, 07:33 PM
Post #3


Member
**

Group: Members
Posts: 25
Joined: 21-October 05
From: Brisbane, Australia
Member No.: 761



QUOTE(pairote @ Jun 28 2007, 09:45 PM) *
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


--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 



Lo-Fi Version Time is now: 3rd September 2010 - 12:47 AM