Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Greetings and salutations monks. I am stupidius, of the clan, Stupid. I am sent forth to you today to seek your wisdom in the matter of the flock function. Several scripts on mine website may run simultaneously, and they may requireth access to a certain file for reading and/or writing. What is the proper way to flock a file so that if that certain file is needed, the calling script will wait for it to be released if it is locked? I do not merely wish to lock it and have other scripts return errors, but rather, have each one wait there turn. I thank thee in advance, and my apologies for my poor rendition of Ye Old English. Johnius Stupidius of the Stupid Clan

In reply to Proper use of flock by stupidius

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2023-04-01 05:25 GMT
Find Nodes?
    Voting Booth?

    No recent polls found