Check File Change Every 10 Seconds

2007-10-22 Thread Robert Rawlins - Think Blue
Hello Chaps, I've got a requirement to check a file for a change every 10 seconds or so, and if the file has been modified since the last time I parsed its content into the application then I need to parse it in again. However, I need this process to not interrupt the rest of my application

Re: Check File Change Every 10 Seconds

2007-10-22 Thread Gabriel Genellina
En Mon, 22 Oct 2007 06:56:52 -0300, Robert Rawlins - Think Blue [EMAIL PROTECTED] escribi�: I've got a requirement to check a file for a change every 10 seconds or so, and if the file has been modified since the last time I parsed its content into the application then I need to parse

Re: Check File Change Every 10 Seconds

2007-10-22 Thread Tim Golden
Gabriel Genellina wrote: En Mon, 22 Oct 2007 06:56:52 -0300, Robert Rawlins - Think Blue [EMAIL PROTECTED] escribi�: I've got a requirement to check a file for a change every 10 seconds or so, and if the file has been modified since the last time I parsed its content into the

RE: Check File Change Every 10 Seconds

2007-10-22 Thread Robert Rawlins - Think Blue
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gabriel Genellina Sent: 22 October 2007 15:29 To: python-list@python.org Subject: Re: Check File Change Every 10 Seconds En Mon, 22 Oct 2007 06:56:52 -0300, Robert Rawlins - Think Blue [EMAIL PROTECTED] escribi�: I've

RE: Check File Change Every 10 Seconds

2007-10-22 Thread Robert Rawlins - Think Blue
Change Every 10 Seconds Gabriel Genellina wrote: En Mon, 22 Oct 2007 06:56:52 -0300, Robert Rawlins - Think Blue [EMAIL PROTECTED] escribi�: I've got a requirement to check a file for a change every 10 seconds or so, and if the file has been modified since the last time I parsed its

Re: Check File Change Every 10 Seconds

2007-10-22 Thread Marco Mariani
Robert Rawlins - Think Blue wrote: That certainly looks to be the type of thing that I'm looking to achieve, however, I forgot to mention I'm running this on a Linux platform and not a Win32 one :-( Sorry. Did you try python-gamin? Gamin is a file and directory monitoring system defined to

Re: Check File Change Every 10 Seconds

2007-10-22 Thread Gabriel Genellina
En Mon, 22 Oct 2007 11:45:49 -0300, Robert Rawlins - Think Blue [EMAIL PROTECTED] escribi�: Thanks for your time Gabriel, That certainly looks to be the type of thing that I'm looking to achieve, however, I forgot to mention I'm running this on a Linux platform and not a Win32 one :-(

Re: Check File Change Every 10 Seconds

2007-10-22 Thread Paul Rudin
Marco Mariani [EMAIL PROTECTED] writes: Robert Rawlins - Think Blue wrote: That certainly looks to be the type of thing that I'm looking to achieve, however, I forgot to mention I'm running this on a Linux platform and not a Win32 one :-( Sorry. Did you try python-gamin? Gamin is a

Re: Check File Change Every 10 Seconds

2007-10-22 Thread Tommy Nordgren
On 22 okt 2007, at 16.45, Robert Rawlins - Think Blue wrote: Thanks for your time Gabriel, That certainly looks to be the type of thing that I'm looking to achieve, however, I forgot to mention I'm running this on a Linux platform and not a Win32 one :-( Sorry. I'm sure similar things

Re: Check File Change Every 10 Seconds

2007-10-22 Thread Paul Rubin
Robert Rawlins - Think Blue [EMAIL PROTECTED] writes: That certainly looks to be the type of thing that I'm looking to achieve, however, I forgot to mention I'm running this on a Linux platform and not a Win32 one :-( Sorry. If it's just one file, then yes, stat it in a loop with os.sleep. If