dbs has asked for the wisdom of the Perl Monks concerning the following question:
But I keep getting this error: error: can not lock open: (1) my code giving this error is:use FileHandle; usr Fcntl; my $RLOG = new FileHandle "+>> $runlog"; my $MLOG = new FileHandle "+>> $mksysblog"; flock($RLOG, O_NONBLOCK) || warn "no NB lock $!"; flock($MLOG, O_NONBLOCK) || warn "no NB lock $!";
plz help! thx!if ( scalar @_ == 1 ) { my $roll1 = @_; my $rollog1 = new Logfile::Rotate( File => $roll1, Count => 15, Dir => $dir, Gzip => $gzip, Flock => 'yes', Persist => 'yes' ); $rollog1->rotate(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: file lock error
by ikegami (Patriarch) on Apr 06, 2011 at 19:43 UTC | |
by dbs (Sexton) on Apr 06, 2011 at 19:58 UTC | |
by ikegami (Patriarch) on Apr 06, 2011 at 20:09 UTC | |
by ikegami (Patriarch) on Apr 06, 2011 at 20:10 UTC | |
|
Re: file lock error
by wind (Priest) on Apr 06, 2011 at 19:50 UTC | |
by dbs (Sexton) on Apr 06, 2011 at 20:06 UTC | |
by ikegami (Patriarch) on Apr 06, 2011 at 20:15 UTC | |
by dbs (Sexton) on Apr 06, 2011 at 20:24 UTC | |
by ikegami (Patriarch) on Apr 06, 2011 at 20:30 UTC |