Apache Log Files
-Vin
Hi,The access.log at the path iw-home\iw-webd\logs keeps growing. I want to delete the same after backing-up but unsable to do so since one of the services is accessing the same. How can I delete the access.log??Thanks,Subhash
C:\> net stop iwwebdC:\> del iw-home\iw-webd\logs\access.logC:\> net start iwwebd
use TeamSite::Config;use Win32:ervice;(my $iwhome = TeamSite::Config::iwgethome()) =~ tr|\\|/|;StopService("", "iwwebd") || die "Failed to stop iwwebd service ($!)";unlink("$iwhome/iw-webd/logs/access.log") || warn "Failed to remove access.log ($!)";StartService("", "iwwebd") || die "Failed to start iwwebd service ($!)";