AnVir
Verified User
- Joined
- Feb 13, 2008
- Messages
- 28
Hello.
I am coding my own billing system, based on cpu/space/traffic usage.
I parse web server logs for traffic measurement. So I need full list of all domains at server, relative to user (login) names.
This simple shell-script I wrote works, but it shows only main domains, without subdomains and parked domains (aliases):
	
	
	
		
I can write script which will parse DA config files containing subdomains/aliases... But maybe anyone can suggest me another method based on API or something else?
				
			I am coding my own billing system, based on cpu/space/traffic usage.
I parse web server logs for traffic measurement. So I need full list of all domains at server, relative to user (login) names.
This simple shell-script I wrote works, but it shows only main domains, without subdomains and parked domains (aliases):
		Code:
	
	#/bin/bash
for a in `find /usr/local/directadmin/data/users/*/domains.list`; do
  u=`echo "$a" | awk -F / '{ print $7 }'`
   for d in `cat $a`; do
     echo "$d $u"
     done
  doneI can write script which will parse DA config files containing subdomains/aliases... But maybe anyone can suggest me another method based on API or something else?
 
 
		