The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
script to monitor process running on server and posting a mail if any process is dead pradeepmacha Shell Programming and Scripting 13 03-06-2009 07:33 AM
Can a child process return a specific value to a parent process ? Ametis1970 High Level Programming 8 04-09-2008 11:22 PM
Killing of a process and send a mail if the process doesnot come up within 2 minutes Prince89 Shell Programming and Scripting 1 02-15-2008 07:10 PM
how to start a process and make it sleep for 5 mins and then kill that process shrao Shell Programming and Scripting 6 03-27-2007 12:54 PM
my process is going to sleep mode after 12 hours but i need my process in in firsy pr mukesh_rakesh1 UNIX for Advanced & Expert Users 0 09-05-2006 02:43 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-23-2006
kirpond kirpond is offline
Registered User
  
 

Join Date: May 2006
Posts: 5
process id

hi folks,
how do you find a process id if you are given a port number?
  #2 (permalink)  
Old 05-23-2006
amro1 amro1 is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 105
Here...

there are couple of ways:

1. if the process is a "well known" and/or sits on the stadard ports under just see the file /etc/services
2. if you have to find a port for an ongoing connection that may be using the "ephemeral" port see netstat -p
  #3 (permalink)  
Old 05-24-2006
shesatmine shesatmine is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 8
You can also try lsof:
Code:
lsof -i tcp:port
or udp if your app uses that. Note that you'll have to be the owner of that process in order to see it listed.

Salut
  #4 (permalink)  
Old 05-25-2006
kirpond kirpond is offline
Registered User
  
 

Join Date: May 2006
Posts: 5
thank u

yeah its working, thank u.

cheers,
kirpond
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0