[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Webalizer PKG
- Subject: [cobalt-users] Webalizer PKG
- From: "Fathi Said" <fathi@xxxxxx>
- Date: Mon Jan 10 15:28:25 2000
Hello,
With the /usr/admserv/cgi-bin/.dnstelecom/Webalizer/parameters.pl file, the Webalizer pkg handles killed sites. This instructions
delete the site directories at /usr/admserv/html/.dnstelecom/Webalizer. My problem is that I allow my client to view their
statistics on another virtual site, and their stats directory (including all files and subdirectories) on this virtual site doesn't
get deleted automatically by using this script. What line should I add to "rm -rf" a directory of my coice?
Here is the excerpt of the file:
## HANDLE KILLED SITES...kill the output dir
foreach $this (@wz_sites) {
next if (grep /$this/, @vsites);
print "DEBUG: Cleaning and unlinking $webalizer::wz_html_path$this\n" if $DEBUG;
unlink "$webalizer::wz_html_path$this/*";
rmdir "$webalizer::wz_html_path$this";
}
Should I add a line like the following before the last "}"?
<line> rm -rf "/home/sites/stats.domain.com/web/$this"
(where $this is always a fqdn name of a virtual site (like www.domain.com).
My problem is that I don't have experience with Perl, and the above line doesn't work. Anyone who can help me out?
Thanks,
Fathi