bvidinli wrote:
> i started python programming a few months ago.
>
> now i need the code to understand if a file already opened in
> filesystem by another process ?
>
> i looked at docs, howtos, but did not find related info.
> note that normal file open/write operations in python, i know it.
>
> i specificly need to know that "is a file already open by some other
> process other than python".
>
>
> Thank you in advance
This is a OS function. With Linux you use the command lsof (as root). A
Python program can call such a command, but you have to parse the output.
Robert
--
http://mail.python.org/mailman/listinfo/python-list