Fwd: urgent question, about filesystem-files

bvidinli bvidinli at gmail.com
Thu Apr 10 05:01:13 EDT 2008


Sory for lack of information,

 i use linux/unix
 i need to solve this for linux/unix

 i tested os.open with O_EXCL flag, and some other things, that did not solve.

 i need exacly: say example file testfile,

 check if testfile already open by some other process in linux,


 tahnks.
 2008/4/10, Gary Herron <gherron at islandtraining.com>:

> 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 certainly an operating-system dependent bit of functionality.   So
 > first off, you are going to have to tell us *which* OS you're working on.
 >  Then, perhaps someone can help...
 >
 >  Gary Herron
 >
 >



--
 İ.Bahattin Vidinli
 Elk-Elektronik Müh.
 -------------------
 iletisim bilgileri (Tercih sirasina gore):
 skype: bvidinli (sesli gorusme icin, www.skype.com)
 msn: bvidinli at iyibirisi.com
 yahoo: bvidinli

 +90.532.7990607
 +90.505.5667711


-- 
İ.Bahattin Vidinli
Elk-Elektronik Müh.
-------------------
iletisim bilgileri (Tercih sirasina gore):
skype: bvidinli (sesli gorusme icin, www.skype.com)
msn: bvidinli at iyibirisi.com
yahoo: bvidinli

+90.532.7990607
+90.505.5667711


More information about the Python-list mailing list