Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: file lock error

by ikegami (Pope)
on Apr 06, 2011 at 19:43 UTC ( #897868=note: print w/replies, xml ) Need Help??


in reply to file lock error

Valid arguments for flock are

  • LOCK_SH
  • LOCK_EX
  • LOCK_UN
  • LOCK_SH|LOCK_NB
  • LOCK_EX|LOCK_NB
  • LOCK_UN|LOCK_NB

No idea what you meant by flock O_NONBLOCK.

Replies are listed 'Best First'.
Re^2: file lock error
by dbs (Sexton) on Apr 06, 2011 at 19:58 UTC
    tried those, but it gave me an error
    Bareword "LOCK_SH" not allowed while "strict subs" in use at dlpar_mks +ysb-run.plx line 62. Bareword "LOCK_NB" not allowed while "strict subs" in use at dlpar_mks +ysb-run.plx line 62. Bareword "LOCK_SH" not allowed while "strict subs" in use at dlpar_mks +ysb-run.plx line 63. Bareword "LOCK_NB" not allowed while "strict subs" in use at dlpar_mks +ysb-run.plx line 63. dlpar_mksysb-run.plx had compilation errors.

      From the documentation to which I linked,

      import them from the Fcntl module, either individually, or as a group using the ':flock' tag.

      Add

      use Fcntl qw( :flock );

      as in the example

      DUP

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://897868]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2021-06-17 23:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (86 votes). Check out past polls.

    Notices?