(10-08-2008 05:13 AM)DaSilva Wrote: Can you add a date -1 month like:
"=== ispCP - Domain Disk and Traffic Usage Report for 09.2008 ==="
I've added a date to the header, like this:
Code:
=== ispCP - Domain Disk and Traffic Usage Report (YYYY-MM-DD) ===
Quote:because I want to add the cronjob every first day in a month at 0:00.
You shouldn't do this because you'll get zero traffic always... This script reports the traffic of the
current months, so you'll have to run it on the last day of each month, but this will be a bit difficult with cron ... you could run it on 28nd of each month, maybe..
victor531 Wrote:..., but the mails arrive alone without any report.
As BeNe said, I assume your script isn't executable... Anyway you can try to execute
Code:
/home/ispcp-domainreport.pl
directly on the command line.. it'll show you the report - or the reason why it shows no report
Regards
FeG