Arti,
This may not be the same problem as you, but a work colleague and I have
been having continuing problems with Ctrl-Break and Ctrl-C handling and
tethereal since version 0.9 came out.
http://www.ethereal.com/lists/ethereal-users/200202/msg00311.html
http://www.ethereal.com/lists/ethereal-users/200202/msg00253.html
http://www.ethereal.com/lists/ethereal-users/200202/msg00183.html
Ctrl-Break halts tethereal immediately without allowing it to flush its file
buffers. That's why you loose frames and get corrupted partial frame at the
end of the file. If you use Ctrl-C you (or at least I) get a Dr Watson:
Tethereal.exe Exception (0xc0000029), Address 0x77f8918e. If you have
collecting from a particularly busy network and tethereal can't keep up with
name resolution it is even possible to get a "blue screen". A search on
google for 0xc0000029 shows that other Perl and Ruby based apps also seem to
have this problem with Ctrl-C .
Our current workaround is to use 0.8.20 which doesn't have this problem.
Perhaps this will solve yours too.
If you really must use 0.9.x then you could use the "-a" flag to hard code
the end of trace.
Alistair
> ----------------------------------------------------------------------
> Alistair McGlinchy, alistair.mcglinchy@xxxxxxxxxxxxxxxxxxxxx
> Sizing and Performance, Central IT, ext. 5012, ph +44 20 7268-5012
> Marks and Spencer, 3 Longwalk Rd, Stockley Park, Uxbridge UB11 1AW, UK
>
> -----Original Message-----
> From: Arti Sood [SMTP:arti@xxxxxxxxxxxxxx]
> Sent: Tuesday, May 28, 2002 4:41 PM
> To: ethereal-users@xxxxxxxxxxxx
> Subject: [Ethereal-users] How to terminate tethereal from a tcl
> program on Windows?
>
> Hello all,
>
> I have been using tethereal 0.9.1 and using it in tcl based batch program.
> Can
> any one tell me how I can stop the tethereal gracefully so that I get a
> capture
> file which can be viewed or used . I get a message like "The capture file
> was
> cut short in the middle of a packet" when I try to view the captured file
> using
> ethereal or tethereal .
>
> Thanks,
>
> Arti
>
-----------------------------------------------------------------------
Registered Office:
Marks & Spencer p.l.c
Michael House, Baker Street,
London, W1U 8EP
Registered No. 214436 in England and Wales.
Telephone (020) 7935 4422
Facsimile (020) 7487 2670
www.marksandspencer.com
Please note that electronic mail may be monitored.
This e-mail is confidential. If you received it by mistake, please let us know and then delete it from your system; you should not copy, disclose, or distribute its contents to anyone nor act in reliance on this e-mail, as this is prohibited and may be unlawful.
The registered office of Marks and Spencer Financial Services Limited, Marks and Spencer Unit Trust Management Limited, Marks and Spencer Life Assurance Limited and Marks and Spencer Savings and Investments Limited is Kings Meadow, Chester, CH99 9FB.