Results 1 to 2 of 2
  1. #1
    misteryuku is offline Member
    Join Date
    Apr 2012
    Rep Power

    Default 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 05:53 AM.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default 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.

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. i want three java related projects !
    By coolforyou in forum New To Java
    Replies: 32
    Last Post: 07-18-2011, 12:28 PM
  2. problem related to core java
    By ShitalJain in forum New To Java
    Replies: 1
    Last Post: 06-15-2011, 03:16 PM
  3. Replies: 0
    Last Post: 03-09-2010, 07:26 AM
  4. If you are lookin for a Java related job
    By SeanTech23 in forum Jobs Wanted
    Replies: 5
    Last Post: 07-01-2009, 04:24 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts