in reply to Re: Re: Simple Log Rotate Problem
in thread Simple Log Rotate Problem
my $dir = "H:/vpn/"; my $out = "H:/vpn/vpnwarn.out"; my $old = "H:/vpn/vpnwarn.old"; if (-e $old) { unlink($old) || die ("Could not unlink: $!"); } if (-e $out) { mv ($out, $old) || die ("Could not mv: $!"); } # create and write new $out here
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Simple Log Rotate Problem
by monger (Friar) on Nov 14, 2003 at 14:14 UTC |