hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Software and Control Panels : AW Stats automatic updating
Reply

Forum Jump

AW Stats automatic updating

Reply Post New Thread In Hosting Software and Control Panels Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Junior Guru Wannabe
 
Join Date: Jun 2004
Posts: 86

AW Stats automatic updating


Was not sure where exactly to put this, but it is software used in the hosting industry. Anyways, I need help setting up a cron to run every night and automatically update my stats.

The documentaion for the tool awstats_updateall.pl is rediculous at best.

I see there are some options within the script for the following:
=============================
my $DIRCONFIG = "/etc/awstats";

my $Debug=0;

my $Awstats='awstats.pl';

my $AwstatsDir='';
my $AwstatsProg='';
===========================

What the heck difference is there between '$DIRCONFIG' and '$AwstatsDir'? Same question goes for '$Awstats' and '$AwstatsProg'.

Secondly, my hosting company does not allow you to run cron jobs with options, for example awstats_updateall.pl - update. So, I would need to create a secondary script that calls the awstats_updateall.pl with the proper options and run that newly created script as a cron.

I am not a programmer by trade, would anyone be so kind as to write the simple script to do so? I would be ever so grateful!



Sponsored Links
  #2  
Old
Artificial Intelligence
 
Join Date: Feb 2005
Location: Rochester, MN
Posts: 905
with high traffic set it to run every 10 minutes or so,

dir/awstats.pl -config=(yourconffile).conf -update

__________________
Area51.mn VPS, Dedicated & Colocated Servers.
Area51 Computers Custom Servers & Gaming Systems. (Since 1998)
NetAffect Email & Web Hosting Services. (Since 1996)
O===(~~~~~~~~~ Quality Systems & Service Since 1996 ~~~~~~~~)===O

  #3  
Old
Junior Guru Wannabe
 
Join Date: Jun 2004
Posts: 86
Thanks for the reply. My host only updates it's longs once a day unfortunately. So, I can only see last days stats.

If I were to create a seperate PERL script to call that, what would it look like?

Sponsored Links
  #4  
Old
Artificial Intelligence
 
Join Date: Feb 2005
Location: Rochester, MN
Posts: 905
You should be able to just add a task, that repeats once a day. Have it run that simple command and that is it. What cp do you use?

__________________
Area51.mn VPS, Dedicated & Colocated Servers.
Area51 Computers Custom Servers & Gaming Systems. (Since 1998)
NetAffect Email & Web Hosting Services. (Since 1996)
O===(~~~~~~~~~ Quality Systems & Service Since 1996 ~~~~~~~~)===O

  #5  
Old
Junior Guru Wannabe
 
Join Date: Jun 2004
Posts: 86
We use a custom made control panel (I work for the hosting company, Its actually better than any control panel I have ever used).However, one down side is that you cannot run a cron with a command attached to the end, You can only run a script. So, in order to run a script with a command line, you need to write a seperate script that calls the script you want to run with the proper command line within the script... does that make sense?


Last edited by shaxs; 06-18-2005 at 08:50 PM.
  #6  
Old
Artificial Intelligence
 
Join Date: Feb 2005
Location: Rochester, MN
Posts: 905
yes, you should have a look around for a scripter thats looking for work should be an easy job. I assume 20-30 minutes max.

__________________
Area51.mn VPS, Dedicated & Colocated Servers.
Area51 Computers Custom Servers & Gaming Systems. (Since 1998)
NetAffect Email & Web Hosting Services. (Since 1996)
O===(~~~~~~~~~ Quality Systems & Service Since 1996 ~~~~~~~~)===O

Reply

Related posts from TheWhir.com
Title Type Date Posted
More Downtime for HostGator and BlueHost Customers as Router Issues Plague Utah Data Center Web Hosting News 2014-05-01 08:33:57
NetShop Internet Services Ltd Listing 2014-10-22 09:45:05
Rackspace Launches Automatic Cloud Scaling Capabilities Web Hosting News 2013-11-21 12:07:13
WebsPlanet Partners with Verio for SMB Website Builder Web Hosting News 2013-06-20 10:47:00
Fasthosts Internet Updates Cloud Backup to Include Unlimited Automatic Backups Web Hosting News 2013-06-03 16:02:13


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?