in a seperate script(xyz.pl) to update stats and to create awstats db files in specified path given by DirData parameter in the config file .
But this system call is not getting executed when i run that program xyz.pl from Cgi(from browser) and the logerrors.txt looks like that is it is looking for awstats.(ipaddress of the machine).conf(i.e say awstats.10.40.26.75.conf) instead of looking for awstats.worldcirle.conf in the current path .
But inturn this system call is getting executed and it is working perfectly when i run this program xyz.pl with command line.
so my doubt is that is there any settings for executing program that contains awstats.pl system call , from the CGI (browser).
The problem is that AWStats "knows" that you started the program from the browser and it disregards the command line arguments. To solve that, you need to use an environment variable that says AWStats to work as if it had been started from the command line interface :