Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2003
    Location
    Pune, India
    Posts
    22

    Unanswered: getting PID for a process running on a port.

    Hi,
    How do i get the process id of a process runnig on a particular port.
    Regards,
    Amit.K.

  2. #2
    Join Date
    Oct 2003
    Location
    Germany
    Posts
    138
    ps -t ttyXYZ
    or
    ps -ef | grep ttyXYZ

    but you don´t see a getty with this commands.

    then you better use ps -ef | grep getty
    Last edited by fla5do; 12-05-03 at 17:46.
    Greetings from germany
    Peter F.

  3. #3
    Join Date
    Nov 2003
    Location
    Pune, India
    Posts
    22
    Hi,
    Let me illustrate as to what problem i am facing.

    i need to run a weblogic server on the port 7001,
    but that port is being used by some other process (i dont know the pid or the owner of the process).

    now i need to find out some information about that process, so that i can inform the concerned person of the same.

    now fir the port 7001 on the machine, i need to find out the information about the process that's running- PID, Owner etc.
    Regards,
    Amit.K.

  4. #4
    Join Date
    Oct 2003
    Location
    Germany
    Posts
    138
    Hello Amit,
    I thought you need informations about tty´s , I was realy on the woodway.
    Try this :
    look in /etc/services
    or use netstat .
    netstat has a lot of parameters. I dont know all of them, but I think you
    get help by using the man command. (man netstat)
    Greetings from germany
    Peter F.

  5. #5
    Join Date
    Nov 2003
    Location
    Pune, India
    Posts
    22
    Hi Peter,

    Actually, i'd already tried that.
    but there doesn't seem to be any option to get a correlation between the two.

    dont know if there is any other standard utility that gives this info...?
    Regards,
    Amit.K.

  6. #6
    Join Date
    Oct 2003
    Location
    Germany
    Posts
    138
    Hi Amit.
    what a bummer that it don´t work . I have no more idee for your problem.
    Greetings from germany
    Peter F.

  7. #7
    Join Date
    Oct 2003
    Location
    Slovakia
    Posts
    482
    Originally posted by amit_kaps
    Hi Peter,

    Actually, i'd already tried that.
    but there doesn't seem to be any option to get a correlation between the two.

    dont know if there is any other standard utility that gives this info...?
    man fuser

Posting Permissions

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