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

RE: [cobalt-users] How To Get Account Setup Date ?



Hello,

> We have over 250 sites on RaQ2, We have lost the recirds for 
> account setup,
> We wish now to get the date of account (domain) setup from server.

If you know what year they were created on, just do an:

ls -la /home/sites

If not, and I'm not hot on Linux commands, then this little perl script that
I knocked up will  do it (probably have to run it as root):

#!/usr/bin/perl
opendir (DIRS, "/home/sites") or die;
@dirs = readdir (DIRS);
closedir (DIRS);
foreach $dir (@dirs) {
        if (-l "/home/sites/$dir") {
                print "$dir created on
".(localtime((stat("/home/sites/$dir"))[10]))."\n";
        }
}
exit;

Regards,
Jonathan Michaelson

Way to the Web Ltd
Web Hosting, E-Commerce and CGI Scripting
http://www.waytotheweb.com