Ethereal-users: Re: [Ethereal-users] POPEN Query

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 24 Sep 2003 12:37:56 -0700

On Sep 24, 2003, at 12:32 PM, Munshi, Shahid K. (Manpower Contract) wrote:

But when I used


import os,win32pipe
TooMuchTime = 60
x = win32pipe.popen("windump -l > Test.txt",'w+')
w = time.time()
TotalTime = time.time() + TooMuchTime
while time.time() < TotalTime:
        time.sleep(1.0)
        print ".",
x.close()


this code and complied from command line , It does not write any data in test.txt..

I have no idea why that happened, and have no time to investigate it. You're on your own for that one, unless somebody else has a suggestion.

What is effective way for regular ("full") buffering rather than using line buffering ( "-l") option of windump?

Regular buffering means it's even less likely that data will appear in the file after a short period of time passes. There's nothing you can do to change that.