in reply to Re^3: file lock error
in thread file lock error
I also told logfile rotate Flock => no, but that does not rid of my error.
Here is my logfile rotate code:later in my code I am '>>' to this same file from a system command called mksysb, so that looks like:sub _logroll($;$) { my $gzip; eval qq(use Compress::Zlib); if ($@) { $gzip = q(/usr/bin/gzip); } else { $gzip = q(lib); } if ( scalar @_ == 1 ) { my $roll1 = @_; my $rollog1 = new Logfile::Rotate( File => $roll1, Count => 15, Dir => $dir, Gzip => $gzip, Flock => 'no', Persist => 'yes' ); $rollog1->rotate(); } elsif ( scalar @_ == 2 ) { my ($roll1, $roll2) = @_; my $rollog2 = new Logfile::Rotate( File => $roll1, Count => 15, Dir => $dir, Gzip => $gzip, Flock => 'no', Persist => 'yes' ); my $rollog2a = new Logfile::Rotate( File => $roll2, Count => 15, Dir => $dir, Gzip => $gzip, Flock => 'no', Persist => 'yes' ); $_->rotate() for ($rollog2, $rollog2a); } }
system ("mksysb /dev/$rmt -A -e -m -p -X >> $mksysblog 2>&1");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: file lock error
by ikegami (Patriarch) on Apr 06, 2011 at 20:30 UTC |