Need all domain and user list ...

Status
Not open for further replies.

frazali

New member
Joined
Oct 29, 2008
Messages
4
Dear friends i need all domains and user list of directadmin on my server what to do .... can any body help me how can i do it by api if any body have scrip please provide me
Thanks
 
Save to a file and run:

Code:
#!/usr/bin/perl


@users = `ls -1 /usr/local/directadmin/data/users`;
chomp(@users);

foreach $users(@users){

        print "User: $users\nDomains:\n";

        @domains = `cat /usr/local/directadmin/data/users/$users/domains.list`;
        chomp(@domains);

        foreach $domains(@domains){

                print "$domains\n";

        }

        print "\n\n";
}

EDIT: Just realized this was in the API section and you may have wanted an API solution. I don't have the API memorized so I can help you there without doing some research.
 
Thanks friend

thankyou very much ....
i have run it perl filename > domain.list
its works for me
Chill
 
Last edited:
Status
Not open for further replies.
Back
Top