|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
finding a process running on a port
how do I find the process that is running on a port in HP-Unix?
Murali |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
netstat -a
|
| Sponsored Links | ||
|
|
#3
|
||||
|
||||
|
netstat -a won't identify the process. For that you need lsof -i.
|
|
#4
|
|||
|
|||
|
Hi,
But i don't think we have lsof on HP. As far as my knowledge goes it is there on Solaris only. Is that right dude? Murali |
| Sponsored Links | |
|
|
#5
|
||||
|
||||
|
Funny you should ask. I was the first person to port lsof to HP-UX.... but that was HP-UX 3.1. lsof has been available for every version of HP-UX since then.
Actually, lsof is available for virtually every version of unix. You can get lsof for HP-UX at The HP-UX Porting and Archive Centre |
| Sponsored Links | |
|
|
#6
|
||||
|
||||
|
Uuuh, mister Manduva.
Perderabo is not a "Dude", but as he shows a master. Try to be polite and respectfull. Thanks Perderabo. netstat -a does show you the process where you can grep for using ps. Indeed lsof is much more suited for this job. Regs David |
| Sponsored Links | |
|
|
#7
|
||||
|
||||
|
Actually, I sometimes use "dude" myself. I doubt that it was intended as an insult or anything.
But you'l have to help me out with your use of netstat. How do you reach the pid starting from the output of netstat? |
| Sponsored Links | ||
|
![]() |
| Tags |
| solaris |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Process running on which port | amity | AIX | 0 | 09-19-2011 02:51 AM |
| Process running on which port | amity | Solaris | 1 | 09-19-2011 02:24 AM |
| 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 06:33 AM |
| Finding port number !! | kumarmani | Solaris | 11 | 10-08-2008 05:32 AM |
| finding port numbers | darkcastle | IP Networking | 3 | 03-27-2004 02:19 AM |
|
|