Wireshark-dev: Re: [Wireshark-dev] Wireshark from command line?

From: "Abhik Sarkar" <sarkar.abhik@xxxxxxxxx>
Date: Sat, 22 Dec 2007 00:14:22 +0400
Hi Ray,

I think what you want to use is dumpcap. That's the command line
utility to capture packets. Run "dumpcap -h" to check the syntax.

Hope this helps,
Abhik.

On Dec 22, 2007 12:03 AM, Raymond Jender <rayj00@xxxxxxxxx> wrote:
>
> I am developing a script that executes java code to
> send TCP packets out. I need to be able to record
> the packets sent and packets received. I thought being
> able to fire  up WS from the command line, but that
> brings up the GUI. I'd rather capture the packets in
> the background and save them. I need to do something
> like this:
>
> 1. test = 1
> 2. Start up packet capture
> 3. Run test. Send TCP packets out and expect a
> response.
> 4. Stop the packet capture (save the capture in a
> file)
> 5. Test = Test + 1
> 6. Go to 2
>
> Any ideas?
>
> Thanks,
>
> Ray
>
>
>
>      ____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
> _______________________________________________
> Wireshark-dev mailing list
> Wireshark-dev@xxxxxxxxxxxxx
> http://www.wireshark.org/mailman/listinfo/wireshark-dev
>