Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Wireshark connectivity using java and string compare from text file  RSS feed

 
Greenhorn
Posts: 23
  • 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?

 
author
Sheriff
Posts: 23566
138
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
 
Rancher
Posts: 42975
76
  • 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
Boost this thread!