Re: [python-win32] list/kill processes on Win9x and NT+...

2005-07-12 Thread Gabriel Genellina
At Wednesday 13/7/2005 00:30, RayS wrote: >Ah, now I just found after searching for "CreateToolhelp32Snapshot" >http://sourceforge.net/mailarchive/message.php?msg_id=8291643 > >>Does anyone have a way to list/kill without the external process that > works in all 9x and XP? > > > >PDH will work fo

Re: [python-win32] list/kill processes on Win9x and NT+...

2005-07-12 Thread RayS
Ah, now I just found after searching for "CreateToolhelp32Snapshot" http://sourceforge.net/mailarchive/message.php?msg_id=8291643 Thanks Gabriel, Ray At 07:46 PM 7/12/2005, Gabriel Genellina wrote: >At Tuesday 12/7/2005 14:04, Ray Schumacher wrote: > >>I had looked over the methods to list/kill p

Re: [python-win32] list/kill processes on Win9x and NT+...

2005-07-12 Thread Gabriel Genellina
At Tuesday 12/7/2005 14:04, Ray Schumacher wrote: >I had looked over the methods to list/kill processes on Win32, and could >not (yet) find a "pure" Python way to do it that works on 9x, since I >could not get win32pdhutil to work on 98. >So, I combined subprocess.py and pv.exe from >http://www.

Re: [python-win32] win32pipe and buffer size

2005-07-12 Thread Gabriel Genellina
At Tuesday 12/7/2005 13:09, Frank Guenther wrote: >That is exactly the problem, but how can I get the text which the >buffering client prints to the screen? > >The C++ Code looks like: > > printf ("1. Run Static Tests contained in Sections 5 through > 9.\n"); > printf ("2. Run

[python-win32] list/kill processes on Win9x and NT+...

2005-07-12 Thread Ray Schumacher
I had looked over the methods to list/kill processes on Win32, and could not (yet) find a "pure" Python way to do it that works on 9x, since I could not get win32pdhutil to work on 98. So, I combined subprocess.py and pv.exe from http://www.xmlsp.com/pview/PrcView.zip and wrote a quick app to kil

Re: [python-win32] win32pipe and buffer size

2005-07-12 Thread Frank Guenther
[EMAIL PROTECTED] wrote: if __name__ == '__main__': child = subprocess.Popen( ['python', 'echo.py'], Try adding "-u" as an option to Python - this will force Python to reopen stdout etc as unbuffered (ie, the problem is the client is buffering) Mark That i

Re: [python-win32] com server with py2exe fails to import standard module

2005-07-12 Thread Konstantin Veretennicov
On 7/11/05, Amit Upadhyay <[EMAIL PROTECTED]> wrote: > Hi, > > I have a COM server which is working fine on my development machine, [snip] > But when I tranfer it to some other machine, i can not create an > inproc instance of it using win32com.client.dispatch, it gives me: > > Python 2.3.5 (#6

Re: [python-win32] com server with py2exe fails to import standard module

2005-07-12 Thread Bill Papadopoulos
Dear Amit Upadhyay,   Try using cx_Freeze http://starship.python.net/crew/atuining/cx_Freeze/     Bill Vax PAPADOPOULOS __[EMAIL PROTECTED][EMAIL PROTECTED] ___ Python-win32 mailing list Python-win32@python.org http://mail.pyt

Re: [python-win32] win32pipe and buffer size

2005-07-12 Thread Mark Hammond
> if __name__ == '__main__': > child = subprocess.Popen( > ['python', 'echo.py'], Try adding "-u" as an option to Python - this will force Python to reopen stdout etc as unbuffered (ie, the problem is the client is buffering) Mark ___ Pytho

Re: [python-win32] win32pipe and buffer size

2005-07-12 Thread Frank Guenther
Thanks for the reply, but it seems I run into the same problem like before when I use the subprocess module. I modified your example in the following way: echo.py import sys if __name__ == '__main__':     while 1:     indata = sys.stdin.readline()     if indata=='end\n': break