<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi,<div><br></div><div>Is there any BIF where I can check whether a file is used by any other process?</div><div><br></div><div>I have the below scenario. A directory being watch at a regular interval, </div><div>I have to process the file only if that is being written fully.</div><div><br></div><div>If some other process is writing the file, I should check and avoid those. </div><div><br></div><div>How can I achieve this. I can do as os:cmd("lsof | grep <filename>"). But wanted to check is there any other way I can check that in Erlang BIF.</div><div><br></div><div>Thanks,</div><div>Marutha</div> </div></body>
</html>