SUMMARY - truncate ps and list pid for open ports

Scott J. Buecker sbuecker at netjets.com
Fri Mar 7 11:16:12 EST 2003


Thanks to everyone who replied.... Too many to list.

To truncate process string use:   /usr/ucb/ps -auxwww |grep <proc>

To find pid of proc listening on specified port:     lsof -i tcp:<port>

Thanks everyone.

-----Original Message-----
From: Scott J. Buecker
Sent: Friday, March 07, 2003 10:58 AM
To: 'sunmanagers at sunmanagers.org'
Subject:

Anyone know a way to identify a process id that has a specified port
open (LISTENING)?  Looking for a fool proof way to determine pid of a
process listening on certain ports.

Also, is there a way to have ps give the whole string of a running
process instead of truncating?

TIA
_______________________________________________
sunmanagers mailing list
sunmanagers at sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers




More information about the summaries mailing list