*BSD News Article 91741


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!serv.hinet.net!news.uoregon.edu!arclight.uoregon.edu!su-news-hub1.bbnplanet.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!newsxfer3.itd.umich.edu!newsxfer.itd.umich.edu!uunet!in3.uu.net!199.232.240.7!kayrad.ziplink.net!zip1.ziplink.net!not-for-mail
From: Steve Bernacki <steve@ziplink.net>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Finding services offered on machine.
Date: 22 Mar 1997 20:51:39 GMT
Organization: ziplink.net
Lines: 47
Message-ID: <5h1gor$d7r$1@kayrad.ziplink.net>
References: <332FB47C.2781E494@silas.cc.monash.edu.au> <5goslo$9im$1@kayrad.ziplink.net> <3333690E.167EB0E7@silas.cc.monash.edu.au>
NNTP-Posting-Host: zip1.ziplink.net
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit
X-Newsreader: TIN [UNIX 1.3 unoff BETA release 961203]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:37559

Go download lsof, available somewhere in the ports collection... it does
all you want and more.   :)

-S
In comp.unix.bsd.freebsd.misc Chooka <dhenshaw@silas.cc.monash.edu.au> wrote:
: Steve Bernacki wrote:
: > 
: > The easiest way to see what services are running on your system right
: > now is to issue the following command:
: > 
: > netstat -a | egrep LISTEN
: > 
: >

: That's part way there...
: But what if I want to know exactely what port numbers are in use...
: and what process is using them....

: i.e.

: Port	Service
: 80	httpd
: 6000	XF86
: 21	ftpd -l 
: ...
: ...
: etc...

: I need more concise stats so that I can establish which ports are free
: for use by a program.  That way I can generate a script that will search
: for free ports that could be used by a program and dynamically use these
: during compilation...

: Any more advice appreciated.

: Thanx,
: David H
: dhenshaw@silas.cc.monash.edu.au

-- 
--
Steve Bernacki, Jr. | Systems/Networks Administrator
steve@ziplink.net   | Ziplink, LLC 

"I'm so tired but I can't sleep / standing on the edge of something
much too deep / Funny how I feel so much but cannot say a word /
We are screaming inside but we can't be heard." - Sarah McLachlan