how can we achieve second application read that file when first application not modifying it

Posted by soField on Stack Overflow See other posts from Stack Overflow or by soField
Published on 2009-11-05T20:47:31Z Indexed on 2010/04/22 13:03 UTC
Read the original article Hit count: 161

Filed under:
|

i have two application first application is bash second is java

which one of them is periodically deleting and recreating a specific file (first)

the other one is also periodically reading this file and process it in it's own logic (second)

how can we achieve second application read that file when first application not modifying it

my aim is to force second app read the file only when content of file fully written inside it

how can achieve this goal ?

© Stack Overflow or respective owner

Related posts about file

Related posts about locking