The need/reason for this,

i write a program that should perform some operation on files, only if
the file is not being used....

this is for ensuring that file is not in use, ...
by any process  in system....

10.04.2008 tarihinde bvidinli <[EMAIL PROTECTED]> yazmış:
> 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 <[EMAIL PROTECTED]>:
>
>
>  > 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: [EMAIL PROTECTED]
>   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: [EMAIL PROTECTED]
>  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: [EMAIL PROTECTED]
yahoo: bvidinli

+90.532.7990607
+90.505.5667711
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to