[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] how to determine the site number from fqdn pro grammatically



Hello Jim,

> I am creating a site using addvsite with a cgi - works fine. I need to
> determine the site number that has been assigned to the site by the
> addvsite command so that I can then adduser assigning them to 
> the correct
> groupnames. Anyone point me to the right place to look this up ?

Using Perl:

$sitenumber = readlink ("/home/sites/www.mydomain.com");

Regards,
Jonathan Michaelson

Way to the Web Ltd
Commercial CGI Scripting, Web Hosting
http://www.waytotheweb.com