Package net.fenyo.gnetwatch.actions

Examples of net.fenyo.gnetwatch.actions.ExternalCommand


  public Capture(final Config config, final CaptureManager manager, final int device, final String filter) {
    this.config = config;
    this.manager = manager;
    // to convert device to a string, we use the following expression : "" + device
//    cmd = new ExternalCommand(new String [] { "tethereal", "-i", "" + device, "-T", "psml" }, true);
    cmd = new ExternalCommand(new String [] { "tethereal", "-i", "" + device, "-T", "pdml", "-R", "\"" + filter + "\"" }, true);
  }
View Full Code Here


   * @throws InterruptedException exception.
   */
  // GUI thread
  public static String [] listDevices() throws InterruptedException {
    final String devices =
      new ExternalCommand(new String [] { "tethereal", "-D" }, true).runStdout();
    return devices == null ? null : devices.split("\n");
  }
View Full Code Here

TOP

Related Classes of net.fenyo.gnetwatch.actions.ExternalCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.