Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-users: Re: [Wireshark-users] Getting response values from wireshark ??

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Tue, 10 Oct 2006 13:55:59 +0200 (CEST)
Hi,

Wireshark has no option to suppress it's output. You could play with the
way you popen(), but I'm not familiar what Solaris provides in this
respect.
pclose() should provide you with the exit status of Wireshark which is 0
if all is well, !0 otherwise.

Thanx,
Jaap

On Tue, 10 Oct 2006, Janssens, Kitty wrote:

> Hello,
>
> I'm working with wireshark 0.99.3a on Solaris 5.9.
> I start wireshark from a C++ program (with popen() and pclose()) and
> tell it to read from a named pipe (option -i) and specifying some other
> parameters (-n -k -l ...).
>
> Now, when some of the 'startup' parameters are invalid, wireshark
> doesn't start, but prints its man page and makes my program 'hang'.
> Is there any way to catch a return code or something like that?
> Or a way to stop wireshark from showing the man page when it can't start
> with the specified parameters ?
>
>
> Thanks !
>
> Kitty
>
>
>
>