Results 1 to 2 of 2
  1. #1
    dougie1809 is offline Senior Member
    Join Date
    Nov 2011
    Posts
    116
    Rep Power
    0

    Default Command line question

    Hi,

    In java how can I get the output of the PID of a certain port numbers in the command 'netstat -aon' ?
    Thanks

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,902
    Rep Power
    25

    Default Re: Command line question

    There are methods in the Process class for getting the output from a command that is executed.

Similar Threads

  1. Replies: 16
    Last Post: 09-17-2011, 03:41 AM
  2. Command Line Error
    By Differintegral in forum New To Java
    Replies: 8
    Last Post: 07-29-2010, 10:49 AM
  3. can i run line by line command in netbean?
    By choconlongxu in forum NetBeans
    Replies: 1
    Last Post: 07-19-2010, 09:41 PM
  4. Replies: 2
    Last Post: 07-02-2010, 03:20 PM
  5. Unable to execute command line command in java
    By LordSM in forum New To Java
    Replies: 1
    Last Post: 08-08-2007, 01:23 AM

Posting Permissions

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