The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to get a domain list from a shell

Discussion in 'General Discussion' started by Tximis, Sep 13, 2005.

  1. Tximis

    Tximis Member

    Joined:
    Apr 8, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Is there any script to fetch a list of hosted domains? Similar to the option "Fetch CSV" via WHM but from command line.

    Thanks!
     
  2. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Hello,

    You can find out the information with the help of following command. It will lists all domains including subdomains

    cat /etc/localdomains | less
     
  3. Tximis

    Tximis Member

    Joined:
    Apr 8, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    bijo thanks for the tip but I am searching a scripts that generates a output in CSV format, including reseller name, username, quota, disc space, etc.. similar to "Fetch CSV" option in the "List Accounts" section.

    Regards
     
  4. richy

    richy Well-Known Member

    Joined:
    Jun 30, 2003
    Messages:
    276
    Likes Received:
    1
    Trophy Points:
    16
    Have a look at /var/cpanel/users/* which may be a good starting point.
     
Loading...

Share This Page