Along the same lines of what halley had to say in his
reply I once solved that problem by using an algorithm
described in the following psuedocode:
open file for reading
slurp in file into a scalar
close file
calculate the MD5 of slurp buffer
wait X seconds
open file for reading
slurp into second scalar
close file
calculate MD5 of second slurp buffer
compare and repeat if not equal.
Another scheme I have used in the past is to let the
FTP client that is putting the files into the directory
bit-twiddle the permission bits so that when the client
is done copying the permission bits are of some pre-agreed
upon value, (444 being my favorite) and then opening the
file.
Peter L. Berghold -- Unix Professional Peter at Berghold dot Net |
|
Dog trainer, dog agility exhibitor, brewer of
fine Belgian style ales. Happiness is a warm, tired, contented dog curled up at your side and
a good Belgian ale in your chalice. |
-
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.
|