<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD-Dev] Re: Question for the list (Semi-OT) -->
<!--X-From-R13: Ayvire Xbjrgg <byvireNwbjrgg.znanjngh.cynarg.pb.am> -->
<!--X-Date: Sat, 15 Aug 1998 17:00:56 -0700 -->
<!--X-Message-Id: Pine.LNX.3.96.980816115141.535B-100000#andridys,ip.local -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: Pine.GSO.3.95q.980815131903.2336A-100000@uhunix1 -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: Question for the list (Semi-OT)</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:oliver#jowett,manawatu.planet.co.nz">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">
<font size="+4" color="#804040">
<strong><em>MUD-Dev<br>mailing list archive</em></strong>
</font>
<br>
[ <a href="../">Other Periods</a>
| <a href="../../">Other mailing lists</a>
| <a href="/search.php3">Search</a>
]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->
Date:
[ <a href="msg00743.html">Previous</a>
| <a href="msg00745.html">Next</a>
]
Thread:
[ <a href="msg00743.html">Previous</a>
| <a href="msg00755.html">Next</a>
]
Index:
[ <A HREF="author.html#00744">Author</A>
| <A HREF="#00744">Date</A>
| <A HREF="thread.html#00744">Thread</A>
]
<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: Question for the list (Semi-OT)</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: Mud Design Mailing List <<A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A>></LI>
<LI><em>Subject</em>: [MUD-Dev] Re: Question for the list (Semi-OT)</LI>
<LI><em>From</em>: Oliver Jowett <<A HREF="mailto:oliver#jowett,manawatu.planet.co.nz">oliver#jowett,manawatu.planet.co.nz</A>></LI>
<LI><em>Date</em>: Sun, 16 Aug 1998 11:59:47 +1200 (NZST)</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
On Sat, 15 Aug 1998, Nathan F Yospe wrote:
> What I'm looking for is a way, on a generalized unix platform, to track the
> process that is currently binding a descriptor to a socket, and return that
> process's pid, without su access...
>
> For example, while on the host machine, I'd like to be able to make a call,
> int p_id = get_owner(short portnum); Where I say p_id = get_owner(5000). It
> seems like there should be some way to recover this, but... *shrug*
Without su access could be hairy.
lsof (<A HREF="ftp://vic.cc.purdue.edu/pub/tools/unix/lsof">ftp://vic.cc.purdue.edu/pub/tools/unix/lsof</A>) will do it, but it
needs access to kernel memory on most systems. I think that it can work
entirely from /proc under recent linux kernels, although you need read
access to the appropriate /proc/nnn/* entries.
I suspect the answer is "no" for a generic solution, and "probably no" for
most system-specific solutions.
If you're writing code for the process in question, of course, you could
maintain a database of port information somewhere yourself.
-O
</PRE>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00755" HREF="msg00755.html">[MUD-Dev] Re: Question for the list (Semi-OT)</A></strong>
<ul compact><li><em>From:</em> Jon Leonard <jleonard#divcom,slimy.com></li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00743" HREF="msg00743.html">[MUD-Dev] Question for the list (Semi-OT)</A></STRONG>
<UL><LI><EM>From:</EM> Nathan F Yospe <yospe#hawaii,edu></LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00743.html">[MUD-Dev] Question for the list (Semi-OT)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00745.html">[MUD-Dev] Re: Yet another update on threads and signals</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00743.html">[MUD-Dev] Question for the list (Semi-OT)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00755.html">[MUD-Dev] Re: Question for the list (Semi-OT)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00744"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00744"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>[MUD-Dev] Re: UBE/high: Re: FW: UBE/high: Re: W IRED: Kilers</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00811" HREF="msg00811.html">[MUD-Dev] Re: UBE/high: Re: FW: UBE/high: Re: W IRED: Kilers</A></strong>,
quzah <a href="mailto:quzah#geocities,com">quzah#geocities,com</a>, Sat 22 Aug 1998, 08:11 GMT
</LI>
<LI><strong><A NAME="00928" HREF="msg00928.html">[MUD-Dev] Re: UBE/high: Re: FW: UBE/high: Re: W IRED: Kilers</A></strong>,
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Thu 03 Sep 1998, 15:03 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00756" HREF="msg00756.html">[MUD-Dev] Re: UBE/high: Re: FW: UBE/high: Re: W IRED: Kilers have more fun</A></strong>,
S. Patrick Gallaty <a href="mailto:patrick#gric,com">patrick#gric,com</a>, Tue 18 Aug 1998, 00:48 GMT
<LI><strong><A NAME="00743" HREF="msg00743.html">[MUD-Dev] Question for the list (Semi-OT)</A></strong>,
Nathan F Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Sat 15 Aug 1998, 23:27 GMT
<UL>
<LI><strong><A NAME="00744" HREF="msg00744.html">[MUD-Dev] Re: Question for the list (Semi-OT)</A></strong>,
Oliver Jowett <a href="mailto:oliver#jowett,manawatu.planet.co.nz">oliver#jowett,manawatu.planet.co.nz</a>, Sun 16 Aug 1998, 00:00 GMT
<UL>
<LI><strong><A NAME="00755" HREF="msg00755.html">[MUD-Dev] Re: Question for the list (Semi-OT)</A></strong>,
Jon Leonard <a href="mailto:jleonard#divcom,slimy.com">jleonard#divcom,slimy.com</a>, Tue 18 Aug 1998, 00:48 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00748" HREF="msg00748.html">[MUD-Dev] Re: Question for the list (Semi-OT)</A></strong>,
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Sun 16 Aug 1998, 20:10 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00731" HREF="msg00731.html">[MUD-Dev] RE: UBE/high: Re: W IRED: Kilers have more fun</A></strong>,
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Sat 15 Aug 1998, 03:34 GMT
<UL>
<LI><strong><A NAME="00734" HREF="msg00734.html">[MUD-Dev] Re: UBE/high: Re: W IRED: Kilers have more fun</A></strong>,
Mike Sellers <a href="mailto:mike#bignetwork,com">mike#bignetwork,com</a>, Sat 15 Aug 1998, 08:38 GMT
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>
</ul>
<hr>
<center>
[ <a href="../">Other Periods</a>
| <a href="../../">Other mailing lists</a>
| <a href="/search.php3">Search</a>
]
</center>
<hr>
</body>
</html>