Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: file lock error

by ikegami (Patriarch)
on Apr 06, 2011 at 19:43 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://897868]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-24 02:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found