Results 1 to 2 of 2
- 04-27-2012, 04:46 AM #1Member
- Join Date
- Apr 2012
- Rep Power
Programming in Java related to batch file processing related to wireshark
Hello professionals. I'm using wireshark and java to code.
These are what i intend to do when i want to program in Java.
1. capturing packet data live using wireshark's tshark command from the windows batch file using Java.
2. The windows batch file will run java file that process the single txt file just rolled while live capturing is still going on to another txt file in a multitasking manner.
3. Once after the java file has finished executing its codes, wait for more packet data to be captured to the other txt file to its limit then run the same java files again.
To wrap up the overall idea,
I would like to make a java file that runs a batch file that executes a wireshark's tshark command on windows command line interface :" tshark -i your_interface -n | your_program " that PIPES the output from tshark to java program(a java file). then the java file processes the piped output from tshark. I used java.util.Logging to process the data and this step i used Filehandler to write log data to log file. That means there are "2" processes running at the same time. Is that right?
Does this situation involve the use of Java threads? semaphores etc..?
What are the things i do need to take note of when i code ?
What is the recommended way of doing this? i just want a guideline and an overview of doing this.
Last edited by misteryuku; 04-27-2012 at 04:53 AM.
- 04-27-2012, 07:14 AM #2
Re: Programming in Java related to batch file processing related to wireshark
When Runtime.exec() won't
Make sure to go through all the sections and implement all recommendations.
dbIf you're forever cleaning cobwebs, it's time to get rid of the spiders.
- By coolforyou in forum New To JavaReplies: 32Last Post: 07-18-2011, 11:28 AM
- By ShitalJain in forum New To JavaReplies: 1Last Post: 06-15-2011, 02:16 PM
- By identita in forum Advanced JavaReplies: 0Last Post: 03-09-2010, 07:26 AM
- By SeanTech23 in forum Jobs WantedReplies: 5Last Post: 07-01-2009, 03:24 AM