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";
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!
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?