Ethereal-users: [Ethereal-users] POPEN Query

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

From: "Munshi, Shahid K. (Manpower Contract)" <shahid.k.munshi@xxxxxx>
Date: Wed, 24 Sep 2003 12:48:05 -0500
I am trying to capture network traffic for 60 seconds using windump utility for windows under Windows 2000 Server platform.
When I open the Captured file , There is nothing in file....  Anybody explain me why ?

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

Shahid