Re: Possible to open a file for shared write mode under Windows?

2010-03-17 Thread Chris Colbert
It's not too difficult: # subp.py import sys import time for i in range(10): sys.stdout.write('I am subprocess\n') sys.stdout.flush() # this may not be necessary time.sleep(1) # writer.py import subprocess import time subp = subprocess.Popen(['/usr/bin/python', '-u', './subp.py']

Re: Possible to open a file for shared write mode under Windows?

2010-03-17 Thread python
Hi Gabriel, > Using the pywin32 package at sourceforge, you have access to the CreateFile > function: > http://msdn.microsoft.com/en-us/library/aa363858(v=VS.85).aspx > You want dwShareMode=FILE_SHARE_WRITE Thanks - that was exactly what I was looking for. Regards, Malcolm -- http://mail.pyt

Re: Possible to open a file for shared write mode under Windows?

2010-03-17 Thread Steve Holden
Chris Colbert wrote: [top-posting switched to bottom-posting] > > On Thu, Mar 18, 2010 at 12:20 AM, Gabriel Genellina > mailto:gagsl-...@yahoo.com.ar>> wrote: > > En Wed, 17 Mar 2010 23:42:46 -0300, > escribió: > > > Is there a way to open a file for

Re: Possible to open a file for shared write mode under Windows?

2010-03-17 Thread Chris Colbert
you could also just have one process do the writing for both processes via pipes. On Thu, Mar 18, 2010 at 12:20 AM, Gabriel Genellina wrote: > En Wed, 17 Mar 2010 23:42:46 -0300, escribió: > > > Is there a way to open a file for shared write mode under >> Windows? >> >> I have 2 processes that

Re: Possible to open a file for shared write mode under Windows?

2010-03-17 Thread Gabriel Genellina
En Wed, 17 Mar 2010 23:42:46 -0300, escribió: Is there a way to open a file for shared write mode under Windows? I have 2 processes that will write to different regions of this shared file. Using the pywin32 package at sourceforge, you have access to the CreateFile function: http://msdn.

Possible to open a file for shared write mode under Windows?

2010-03-17 Thread python
Is there a way to open a file for shared write mode under Windows? I have 2 processes that will write to different regions of this shared file. Thank you, Malcolm -- http://mail.python.org/mailman/listinfo/python-list