• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wireshark connectivity using java and string compare from text file

 
Riddhi Kakadia
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to write a code which does following things:

1. capture wireshark traces
2. convert pcap file to text file
3. search string from that text file
4. stop taking wireshark traces

I have implemented it as below:


The problem is with line //problem here. I want to run traces in background.
I want to modify the above code so that,

-->start wireshark traces
-->do something like (open browser and open webpage)
-->stop wireshark
-->compare

But the problem is that //it does not go out from the //problem here line. and so i cannot go to the next step. Any ideas on implementation?

 
Henry Wong
author
Marshal
Pie
Posts: 21226
81
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Riddhi Kakadia wrote:

But the problem is that //it does not go out from the //problem here line. and so i cannot go to the next step. Any ideas on implementation?



Not sure if this question is even thread related.

Is the issue related with being able to call runtime.exec()? Or is the question about starting a thread to do so. If the first, then this is not a thread question. If the second, then what is the issue? The example doesn't start a separate thread at all.

Henry
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure you follow all the advice given in this article.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic