Ethereal-users: [Ethereal-users] Reliable termination of a tethereal capture from a script

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

From: "Piergiorgio Brandolin" <piergiorgio.brandolin@xxxxxxxxx>
Date: Wed, 17 Mar 2004 09:18:42 +0100
Anybody can help me?

I am writing some perl scripts (ActivePerl 5.6 on a Win2K system) that perform tests on network devices. The basic structure of these scripts is : start (asynchronously) a tethereal capture, perform some operation on devices, stop the trace, analyze the trace.
I'm using the Win32::Process package but the kill method look unreliable (for small traffic the capture file is empty, it looks like tethereal or the underlying libpcap perform a sort of buffering and I don't know how to force a disk write).
Tethereal autostop conditions don't look suitable: in general I cannot predict the running time of the script or the number of packet to capture.
A stop condition triggered by a capture filter would be very helpful, but as far as I know is not implemented.

Have you got some ideas ?

Thenk You

Piergiorgio Brandolin
R&D
Telsey telecommunications
Via Enrico Mattei, 29
31055 Quinto di Treviso (TV)
ph.: +39 0422 470840
fax: +39 0422 470920
web: www.telsey.it

PRIVACY AND CONFIDENTIALITY NOTICE 
This email and any attachments are confidential and are intended for the addressee only.
If you have received this message by mistake, please contact us immediately and then
delete the message from your system. You must not copy, distribute, disclose or act upon
the contents of this email.