P
plb
Hello All,
I'm just starting to learn perl. Here's what I'm trying to do:
I have a webpage setup that displays all 'active' vhosts that run on
my webserver. This page is generated in ASP. I would like to write a
perl script that takes the list of 'active' vhosts and writes them to
a text file. Then I would like to compare this list to the wwwroot
directory on the webserver so I can delete any vhosts that are not in
use. There is about a 300-400 difference between the webpage and
wwwroot directory.
Ideally I would like the script to:
1) compile a list of active vhosts
2) compare this list to the "wwwroot" directory
3) delete any directory that is not on the list of active vhosts
I'm hoping someone can help me out getting started.
Thank you for your help,
plb
I'm just starting to learn perl. Here's what I'm trying to do:
I have a webpage setup that displays all 'active' vhosts that run on
my webserver. This page is generated in ASP. I would like to write a
perl script that takes the list of 'active' vhosts and writes them to
a text file. Then I would like to compare this list to the wwwroot
directory on the webserver so I can delete any vhosts that are not in
use. There is about a 300-400 difference between the webpage and
wwwroot directory.
Ideally I would like the script to:
1) compile a list of active vhosts
2) compare this list to the "wwwroot" directory
3) delete any directory that is not on the list of active vhosts
I'm hoping someone can help me out getting started.
Thank you for your help,
plb