Current time: 11-27-2024, 05:44 PM Hello There, Guest! (LoginRegister)


Post Reply 
Domain Disk and Traffic Usage Report
Author Message
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #12
RE: Domain Disk and Traffic Usage Report
(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. Smile
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
(This post was last modified: 10-09-2008 04:05 AM by DaSilva.)
10-09-2008 03:53 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Domain Disk and Traffic Usage Report - FeG - 10-06-2008, 10:19 PM
RE: Domain Disk and Traffic Usage Report - DaSilva - 10-09-2008 03:53 AM

Forum Jump:


User(s) browsing this thread: 9 Guest(s)