Hi, I'm trying to use the following command from java application: tshark -l -T pdml -ieth0 -f "host 192.168.186.128 or host 188.8.131.52" -Y"http"
When i'm executing this command line from the shell it works fine, but when i'm trying to run this command from the application i get this message: <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="pdml2html.xsl"?> <pdml version="0" creator="wireshark/1.12.0" time="Tue Jan 6 18:17:43 2015" capture_file=""> </pdml>
Any help welcome Thanks Ilan
asked 06 Jan '15, 08:20
Looks like your capturing process did not start. One possible reason: Your Java application does not have enough privileges to run tshark (actually dumpcap) on Linux/Unix/*BSD. If so, you will get an error message on STDERR. So, please check STDERR while you run tshark from Java to see the error message.
To fix the privilege issue, please read the following Wiki:
See also my answers (and comments) to the following questions.
answered 07 Jan '15, 01:33
Kurt Knochner ♦