Re: Watching a file another app is writing

2007-03-12 Thread Gordon Airporte
Vishal Bhargava wrote: > What kind of file is it? CSV? It's a hand history file generated by an online poker client, thus it probably keeps it's data pretty much to itself otherwise, and in any case I'm not a Windows programmer so I probably don't have the stomach to get very deep into its proc

Re: Watching a file another app is writing

2007-03-12 Thread Gordon Airporte
Gabriel Genellina wrote: > This article explains it in detail: > http://tgolden.sc.sabren.com/python/win32_how_do_i/watch_directory_for_changes.html > > > BTW, it's the top result on Google for "python notify file change windows" > > --Gabriel Genellina Ah, excelent. Thank you. I'd started w

Re: Watching a file another app is writing

2007-03-12 Thread Jon Ribbens
In article <[EMAIL PROTECTED]>, John Nagle wrote: >> On Unix a quick shortcut would be to simply read the output of 'tail - >> f ' command... > > "tail -f" just checks the file size once a second. It's not doing > anything exciting. That's not actually always true these days. *BSD, at least,

RE: Watching a file another app is writing

2007-03-12 Thread Vishal Bhargava
What kind of file is it? CSV? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Sanders Sent: Monday, March 12, 2007 11:26 AM To: python-list@python.org Subject: Re: Watching a file another app is writing Gordon Airporte wrote: > I'm trying

Re: Watching a file another app is writing

2007-03-12 Thread Jeremy Sanders
Gordon Airporte wrote: > I'm trying to find a way to take a file that another program has opened > and writes to periodically, open it simultaneously in Python, and > automatically update some of my objects in Python when the file is > written to. > I can open the file and manually readlines() fro

Re: Watching a file another app is writing

2007-03-12 Thread John Nagle
Nick Vatamaniuc wrote: > On Mar 11, 3:36 pm, Gordon Airporte <[EMAIL PROTECTED]> wrote: > >>I'm trying to find a way to take a file that another program has opened >>and writes to periodically, open it simultaneously in Python, and >>automatically update some of my objects in Python when the file

Re: Watching a file another app is writing

2007-03-12 Thread Roel Schroeven
Gordon Airporte schreef: > Nick Vatamaniuc wrote: > > You might need to look at pywin32 for Windows specific ways to listen >> to "file changed" event. >> >> On Unix a quick shortcut would be to simply read the output of 'tail - >> f ' command... > > Ah, I forgot I have Cygwin installed, so I do

Re: Watching a file another app is writing

2007-03-12 Thread Gabriel Genellina
En Mon, 12 Mar 2007 04:25:48 -0300, Gordon Airporte <[EMAIL PROTECTED]> escribió: > Nick Vatamaniuc wrote: > > You might need to look at pywin32 for Windows specific ways to listen >> to "file changed" event. This article explains it in detail: http://tgolden.sc.sabren.com/python/win32_how_do

Re: Watching a file another app is writing

2007-03-11 Thread Gordon Airporte
Nick Vatamaniuc wrote: > You might need to look at pywin32 for Windows specific ways to listen > to "file changed" event. > > On Unix a quick shortcut would be to simply read the output of 'tail - > f ' command... Ah, I forgot I have Cygwin installed, so I do have tail. Unfortunately Windows w

Re: Watching a file another app is writing

2007-03-11 Thread Nick Vatamaniuc
On Mar 11, 3:36 pm, Gordon Airporte <[EMAIL PROTECTED]> wrote: > I'm trying to find a way to take a file that another program has opened > and writes to periodically, open it simultaneously in Python, and > automatically update some of my objects in Python when the file is > written to. > I can ope