SUMMARY - truncate ps and list pid for open ports

From: Scott J. Buecker <sbuecker_at_netjets.com>
Date: Fri Mar 07 2003 - 11:16:12 EST
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@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@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Mar 7 11:19:08 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:04 EST