SUMMARY - truncate ps and list pid for open ports

From: Scott J. Buecker (sbuecker@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



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:57 EDT