(10-08-2008 06:46 PM)FeG Wrote: (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..
Regards
FeG
Thanks, I will try it out.
Now I have added this cronjob:
59 23 31 1,3,5,7,8,10,12 * /etc/ispcp/ispcp-domainreport-cronjob.sh
59 23 30 4,6,9,11 * /etc/ispcp/ispcp-domainreport-cronjob.sh
59 23 28 2 * /etc/ispcp/ispcp-domainreport-cronjob.sh